diff --git a/locales/en.json b/locales/en.json index 6d476392..5e587ec3 100644 --- a/locales/en.json +++ b/locales/en.json @@ -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", diff --git a/static/js/components/shared/RecipeTab.js b/static/js/components/shared/RecipeTab.js index 1f34c0d7..78c4e9cc 100644 --- a/static/js/components/shared/RecipeTab.js +++ b/static/js/components/shared/RecipeTab.js @@ -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'); }); }