mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
feat(localization): add custom filter message and update toast keys for recipe actions
This commit is contained in:
@@ -713,7 +713,8 @@
|
|||||||
},
|
},
|
||||||
"filters": {
|
"filters": {
|
||||||
"applied": "{message}",
|
"applied": "{message}",
|
||||||
"cleared": "Filters cleared"
|
"cleared": "Filters cleared",
|
||||||
|
"noCustomFilterToClear": "No custom filter to clear"
|
||||||
},
|
},
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"imagesCompleted": "Example images {action} completed",
|
"imagesCompleted": "Example images {action} completed",
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ function getLoraStatusTitle(totalCount, missingCount) {
|
|||||||
*/
|
*/
|
||||||
function copyRecipeSyntax(recipeId) {
|
function copyRecipeSyntax(recipeId) {
|
||||||
if (!recipeId) {
|
if (!recipeId) {
|
||||||
showToast('recipeTab.noRecipeId', {}, 'error');
|
showToast('toast.recipes.noRecipeId', {}, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ function copyRecipeSyntax(recipeId) {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error('Failed to copy: ', err);
|
console.error('Failed to copy: ', err);
|
||||||
showToast('recipeTab.copyFailed', {}, 'error');
|
showToast('toast.recipes.copyFailed', { message: err.message }, 'error');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user