Fixed deleted toast message

This commit is contained in:
Alexis
2025-04-16 10:53:55 +02:00
parent db6ae36743
commit d681c45a1e
2 changed files with 7 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ async function handleAction(): Promise<void> {
await deleteCategoryFromSkeleton()
toast({
title: t("entity.calendar.category.deletedToast.title", { category: categoryName }),
title: t("entity.category.deletedToast.title", { category: categoryName }),
variant: "success",
duration: ToastLifetime.MEDIUM
})

View File

@@ -110,6 +110,9 @@ export default defineI18nConfig(() => ({
title: "The category \"{category}\" has been successfuly updated.",
titleError: "An error has occured and the category \"{category}\" wasn't updated.",
},
deletedToast: {
title: "The category \"{category}\" has been successfuly deleted.",
},
},
isLoading: "Loading in progress…",
addDescription: "Add a description",
@@ -429,6 +432,9 @@ export default defineI18nConfig(() => ({
title: "La catégorie \"{category}\" a été modifiée avec succès.",
titleError: "Une erreur s'est produite et la catégorie \"{category}\" n'a pas pu être modifiée.",
},
deletedToast: {
title: "La catégorie \"{category}\" a été supprimée avec succès.",
},
},
isLoading: "Chargement en cours…",
addDescription: "Ajouter une description",