From f4e4abc94cf7c1c5efc5260f750da70702b2008e Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Sun, 1 Jun 2025 22:15:54 +0330 Subject: [PATCH] Updated --- frontend/composables/global/useToast.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/composables/global/useToast.ts b/frontend/composables/global/useToast.ts index 4649bac..a68c0b0 100644 --- a/frontend/composables/global/useToast.ts +++ b/frontend/composables/global/useToast.ts @@ -1,14 +1,14 @@ export type ToastOptions = { description?: string; duration?: number; - status?: "success" | "error" | "info" | "warning", -} + status?: "success" | "error" | "info" | "warning"; +}; type Toast = { id: number; message: string; - options?: ToastOptions -} + options?: ToastOptions; +}; const toasts = ref([]); @@ -20,12 +20,12 @@ export function useToast() { }; const destroyToast = (id: number) => { - toasts.value = toasts.value.filter(toast => toast.id !== id); + toasts.value = toasts.value.filter((toast) => toast.id !== id); }; return { toasts, addToast, - destroyToast + destroyToast, }; -} \ No newline at end of file +}