From afd60b8a16acba7791982a78af4b5f2e47c5ec48 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:17:10 -0700 Subject: [PATCH] Fix license selector (#1213) --- pages/[type]/[id]/settings/license.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pages/[type]/[id]/settings/license.vue b/pages/[type]/[id]/settings/license.vue index ad4c4fc9a..0cd346f26 100644 --- a/pages/[type]/[id]/settings/license.vue +++ b/pages/[type]/[id]/settings/license.vue @@ -141,8 +141,8 @@ export default defineNuxtComponent({ return { licenseUrl: '', license: { friendly: '', short: '', requiresOnlyOrLater: false }, - allowOrLater: false, - nonSpdxLicense: false, + allowOrLater: this.project.license.id.includes('-or-later'), + nonSpdxLicense: this.project.license.id.includes('LicenseRef-'), showKnownErrors: false, } }, @@ -240,15 +240,10 @@ export default defineNuxtComponent({ } } - const allowOrLater = computed(() => props.project.license.id.includes('-or-later')) - const nonSpdxLicense = computed(() => props.project.license.id.includes('LicenseRef-')) - return { defaultLicenses, licenseUrl, license, - allowOrLater, - nonSpdxLicense, } }, computed: {