Added updated toast

This commit is contained in:
Alexis
2024-12-19 16:28:38 +01:00
parent dde3f8504a
commit df8af541c1
2 changed files with 12 additions and 0 deletions

View File

@@ -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