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