diff --git a/src/App.vue b/src/App.vue index 522e0b6..6a1ec22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,15 +18,16 @@ const cancelToastOpen = () => { }; }; -const openToast = (status, content, to = "body") => { +const openToast = (status, content, to = "body", confirm = null) => { isToastOpen.value = { open: true, content, status, to, + confirm, }; }; -provide("app_toast", { openToast }); +provide("app_toast", { openToast, cancelToastOpen });