mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
feat(localization): update toast messages for improved user feedback and localization support across various components
This commit is contained in:
@@ -162,7 +162,7 @@ function getLoraStatusTitle(totalCount, missingCount) {
|
||||
*/
|
||||
function copyRecipeSyntax(recipeId) {
|
||||
if (!recipeId) {
|
||||
showToast('Cannot copy recipe syntax: Missing recipe ID', 'error');
|
||||
showToast('recipeTab.noRecipeId', {}, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ function copyRecipeSyntax(recipeId) {
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Failed to copy: ', err);
|
||||
showToast('Failed to copy recipe syntax', 'error');
|
||||
showToast('recipeTab.copyFailed', {}, 'error');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -445,7 +445,7 @@ export function initMediaControlHandlers(container) {
|
||||
state.virtualScroller.updateSingleItem(result.model_file_path, updateData);
|
||||
} else {
|
||||
// Show error message
|
||||
showToast('showcase.exampleImages.deleteFailed', { error: result.error }, 'error');
|
||||
showToast('toast.exampleImages.deleteFailed', { error: result.error }, 'error');
|
||||
|
||||
// Reset button state
|
||||
this.disabled = false;
|
||||
|
||||
@@ -430,7 +430,7 @@ async function handleImportFiles(files, modelHash, importContainer) {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error importing examples:', error);
|
||||
showToast(`Failed to import example images: ${error.message}`, 'error');
|
||||
showToast('import.importFailed', { message: error.message }, 'error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user