@@ -3,9 +3,11 @@ import NotificationTemplate from "@repo/ui/src/components/overlay/notification/N
33import NotificationOverlay from " @repo/ui/src/components/overlay/notification/NotificationOverlay.vue" ;
44import DashboardLayout from " ./layouts/DashboardLayout.vue" ;
55import SetupLayout from " ./layouts/SetupLayout.vue" ;
6+ import Button from " @repo/ui/src/components/form/button/Button.vue" ;
67import { computed } from " vue" ;
78import { usePageData } from " ./utils/stores.ts" ;
89import LoadingOverlay from " ./components/overlay/LoadingOverlay.vue" ;
10+ import { useI18n } from " vue-i18n" ;
911
1012const layout = computed (() => {
1113 switch (usePageData ().data .layout ) {
@@ -16,6 +18,8 @@ const layout = computed(() => {
1618 }
1719 return undefined ;
1820});
21+
22+ const t = useI18n ().t ;
1923 </script >
2024
2125<template >
@@ -27,11 +31,36 @@ const layout = computed(() => {
2731 </RouterView >
2832 <LoadingOverlay />
2933 <NotificationTemplate id="default">
30- <template v-slot =" data " >
31- <p >{{ (data as any).message }}</p >
34+ <template v-slot =" notif " >
35+ <p >{{ notif.settings.data.message }}</p >
36+ </template >
37+ </NotificationTemplate >
38+ <NotificationTemplate id="do-not-show-again">
39+ <template v-slot =" notif " >
40+ <div >
41+ <p >{{ notif.settings.data.message }}</p >
42+ <Button
43+ class="app__notif-btn"
44+ type="primary"
45+ :color =" notif .settings .data .color "
46+ @click ="
47+ () => {
48+ notif .settings .data .onClick ();
49+ notif .close ();
50+ }
51+ "
52+ size="small"
53+ >
54+ {{ t("ui.common.do-not-show-again") }}
55+ </Button >
56+ </div >
3257 </template >
3358 </NotificationTemplate >
3459 <NotificationOverlay />
3560</template >
3661
37- <style scoped></style >
62+ <style scoped>
63+ .app__notif-btn {
64+ margin : var (--mcsl-spacing-4xs ) var (--mcsl-spacing-2xs ) 0 auto ;
65+ }
66+ </style >
0 commit comments