Fix license selector (#1213)

This commit is contained in:
Prospector
2023-06-20 12:17:10 -07:00
committed by GitHub
parent c8c75b38c3
commit afd60b8a16

View File

@@ -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: {