From ee0fd76da1474fbda2a09272f9a43f17082e2e64 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 16 Dec 2024 14:12:48 +0100 Subject: [PATCH] feat: use YToast component in useAutoToast --- app/src/composables/useAutoToast.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/composables/useAutoToast.ts b/app/src/composables/useAutoToast.ts index 976484c22..7c306022d 100644 --- a/app/src/composables/useAutoToast.ts +++ b/app/src/composables/useAutoToast.ts @@ -3,6 +3,8 @@ import type { OrchestratedToast } from 'bootstrap-vue-next' import { useToastController } from 'bootstrap-vue-next' import { ref } from 'vue' +import YToast from '@/components/YToast.vue' + type useToastControllerInstance = ReturnType export const useAutoToast = createGlobalState(() => { @@ -13,7 +15,7 @@ export const useAutoToast = createGlobalState(() => { } function show(props: OrchestratedToast) { - toastController.value?.show?.({ props }) + toastController.value?.show?.({ props, component: YToast }) } return { init, show }