mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -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": {
|
||||
"applied": "{message}",
|
||||
"cleared": "Filters cleared"
|
||||
"cleared": "Filters cleared",
|
||||
"noCustomFilterToClear": "No custom filter to clear"
|
||||
},
|
||||
"downloads": {
|
||||
"imagesCompleted": "Example images {action} completed",
|
||||
|
||||
@@ -162,7 +162,7 @@ function getLoraStatusTitle(totalCount, missingCount) {
|
||||
*/
|
||||
function copyRecipeSyntax(recipeId) {
|
||||
if (!recipeId) {
|
||||
showToast('recipeTab.noRecipeId', {}, 'error');
|
||||
showToast('toast.recipes.noRecipeId', {}, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ function copyRecipeSyntax(recipeId) {
|
||||
})
|
||||
.catch(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