You've already forked AstralRinth
forked from didirus/AstralRinth
Fix license selector (#1213)
This commit is contained in:
@@ -141,8 +141,8 @@ export default defineNuxtComponent({
|
|||||||
return {
|
return {
|
||||||
licenseUrl: '',
|
licenseUrl: '',
|
||||||
license: { friendly: '', short: '', requiresOnlyOrLater: false },
|
license: { friendly: '', short: '', requiresOnlyOrLater: false },
|
||||||
allowOrLater: false,
|
allowOrLater: this.project.license.id.includes('-or-later'),
|
||||||
nonSpdxLicense: false,
|
nonSpdxLicense: this.project.license.id.includes('LicenseRef-'),
|
||||||
showKnownErrors: false,
|
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 {
|
return {
|
||||||
defaultLicenses,
|
defaultLicenses,
|
||||||
licenseUrl,
|
licenseUrl,
|
||||||
license,
|
license,
|
||||||
allowOrLater,
|
|
||||||
nonSpdxLicense,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user