You've already forked AstralRinth
forked from didirus/AstralRinth
SPDX: Fix niche issue with checkbox (#825)
This commit is contained in:
@@ -715,7 +715,10 @@ export default {
|
|||||||
licenseId() {
|
licenseId() {
|
||||||
let id = ''
|
let id = ''
|
||||||
|
|
||||||
if (this.nonSpdxLicense || this.license.short === 'All-Rights-Reserved')
|
if (
|
||||||
|
(this.nonSpdxLicense && this.license.friendly === 'Custom') ||
|
||||||
|
this.license.short === 'All-Rights-Reserved'
|
||||||
|
)
|
||||||
id += 'LicenseRef-'
|
id += 'LicenseRef-'
|
||||||
|
|
||||||
id += this.license.short
|
id += this.license.short
|
||||||
@@ -723,7 +726,8 @@ export default {
|
|||||||
if (this.license.requiresOnlyOrLater)
|
if (this.license.requiresOnlyOrLater)
|
||||||
id += this.allowOrLater ? '-or-later' : '-only'
|
id += this.allowOrLater ? '-or-later' : '-only'
|
||||||
|
|
||||||
if (this.nonSpdxLicense) id.replaceAll(' ', '-')
|
if (this.nonSpdxLicense && this.license.short === 'Custom')
|
||||||
|
id.replaceAll(' ', '-')
|
||||||
|
|
||||||
return id
|
return id
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user