mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 07:35:44 -03:00
feat: improve license restriction labels for clarity
Update license restriction labels in ModelModal component to be more descriptive and user-friendly. Changed fallback text and translation keys for various license restrictions including: - Selling models - Generation services - Civitai generation - Selling generated content - Creator credit requirements - Sharing merges - Permission requirements The changes make the license restrictions more clear and specific about what actions are prohibited or required.
This commit is contained in:
@@ -34,25 +34,25 @@ const COMMERCIAL_ICON_CONFIG = [
|
|||||||
key: 'sell',
|
key: 'sell',
|
||||||
icon: 'shopping-cart-off.svg',
|
icon: 'shopping-cart-off.svg',
|
||||||
titleKey: 'modals.model.license.noSell',
|
titleKey: 'modals.model.license.noSell',
|
||||||
fallback: 'Selling not allowed'
|
fallback: 'No selling models'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'rent',
|
key: 'rent',
|
||||||
icon: 'world-off.svg',
|
icon: 'world-off.svg',
|
||||||
titleKey: 'modals.model.license.noRent',
|
titleKey: 'modals.model.license.noRent',
|
||||||
fallback: 'Rental not allowed'
|
fallback: 'No generation services'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'rentcivit',
|
key: 'rentcivit',
|
||||||
icon: 'brush-off.svg',
|
icon: 'brush-off.svg',
|
||||||
titleKey: 'modals.model.license.noRentCivit',
|
titleKey: 'modals.model.license.noRentCivit',
|
||||||
fallback: 'Civitai rental not allowed'
|
fallback: 'No Civitai generation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
icon: 'photo-off.svg',
|
icon: 'photo-off.svg',
|
||||||
titleKey: 'modals.model.license.noImageUse',
|
titleKey: 'modals.model.license.noImageSell',
|
||||||
fallback: 'Image use not allowed'
|
fallback: 'No selling generated content'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ function renderLicenseIcons(modelData) {
|
|||||||
|
|
||||||
const icons = [];
|
const icons = [];
|
||||||
if (hasLicenseField(license, 'allowNoCredit') && license.allowNoCredit === false) {
|
if (hasLicenseField(license, 'allowNoCredit') && license.allowNoCredit === false) {
|
||||||
const label = translate('modals.model.license.creditRequired', {}, 'Credit required');
|
const label = translate('modals.model.license.creditRequired', {}, 'Creator credit required');
|
||||||
icons.push(createLicenseIconMarkup('user-check.svg', label));
|
icons.push(createLicenseIconMarkup('user-check.svg', label));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,12 +169,12 @@ function renderLicenseIcons(modelData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasLicenseField(license, 'allowDerivatives') && license.allowDerivatives === false) {
|
if (hasLicenseField(license, 'allowDerivatives') && license.allowDerivatives === false) {
|
||||||
const label = translate('modals.model.license.noDerivatives', {}, 'Derivatives not allowed');
|
const label = translate('modals.model.license.noDerivatives', {}, 'No sharing merges');
|
||||||
icons.push(createLicenseIconMarkup('exchange-off.svg', label));
|
icons.push(createLicenseIconMarkup('exchange-off.svg', label));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasLicenseField(license, 'allowDifferentLicense') && license.allowDifferentLicense === false) {
|
if (hasLicenseField(license, 'allowDifferentLicense') && license.allowDifferentLicense === false) {
|
||||||
const label = translate('modals.model.license.noReLicense', {}, 'Relicensing not allowed');
|
const label = translate('modals.model.license.noReLicense', {}, 'Same permissions required');
|
||||||
icons.push(createLicenseIconMarkup('rotate-2.svg', label));
|
icons.push(createLicenseIconMarkup('rotate-2.svg', label));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user