Added updated toast
This commit is contained in:
@@ -26,6 +26,12 @@ async function handleAction() {
|
|||||||
await updateEventFromSkeleton()
|
await updateEventFromSkeleton()
|
||||||
|
|
||||||
emit("event-updated")
|
emit("event-updated")
|
||||||
|
|
||||||
|
toast({
|
||||||
|
title: t("entity.calendar.event.updatedToast.title", { event: eventSkeleton.value.title }),
|
||||||
|
variant: "success",
|
||||||
|
duration: 3000
|
||||||
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const apiError = (err as any).data as APIError
|
const apiError = (err as any).data as APIError
|
||||||
|
|||||||
@@ -149,6 +149,9 @@ export default defineI18nConfig(() => ({
|
|||||||
title: "Edit event",
|
title: "Edit event",
|
||||||
subtitle: "Update event data",
|
subtitle: "Update event data",
|
||||||
},
|
},
|
||||||
|
updatedToast: {
|
||||||
|
title: "Event \"{event}\" has been successfuly updated.",
|
||||||
|
},
|
||||||
editErrors: {
|
editErrors: {
|
||||||
toastTitle: "Event wasn't updated.",
|
toastTitle: "Event wasn't updated.",
|
||||||
title_too_big: "Title should be less than 120 characters long.",
|
title_too_big: "Title should be less than 120 characters long.",
|
||||||
@@ -372,6 +375,9 @@ export default defineI18nConfig(() => ({
|
|||||||
title: "Modifier l'évènement",
|
title: "Modifier l'évènement",
|
||||||
subtitle: "Mettre à jour les données de l'évènement",
|
subtitle: "Mettre à jour les données de l'évènement",
|
||||||
},
|
},
|
||||||
|
updatedToast: {
|
||||||
|
title: "L'évènement \"{event}\" a été modifié avec succès.",
|
||||||
|
},
|
||||||
editErrors: {
|
editErrors: {
|
||||||
toastTitle: "L'évènement n'a pas été modifié",
|
toastTitle: "L'évènement n'a pas été modifié",
|
||||||
title_too_big: "Le titre doit être inférieur à 120 caractères.",
|
title_too_big: "Le titre doit être inférieur à 120 caractères.",
|
||||||
|
|||||||
Reference in New Issue
Block a user