adminforth 2.17.0-next.69 → 2.17.0-next.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,17 +18,16 @@
|
|
|
18
18
|
<div v-else class="af-toast-icon inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200">
|
|
19
19
|
<IconCheckCircleSolid class="w-5 h-5" aria-hidden="true" />
|
|
20
20
|
</div>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="flex flex-col items-center justify-center break-all">
|
|
21
|
+
<div class="flex flex-col items-center justify-center break-all">
|
|
22
|
+
<div class="ms-3 text-sm font-normal max-w-xs pr-2" v-if="toast.messageHtml" v-html="toast.messageHtml"></div>
|
|
23
|
+
<div class="ms-3 text-sm font-normal max-w-xs pr-2" v-else>
|
|
25
24
|
{{toast.message}}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</
|
|
25
|
+
</div>
|
|
26
|
+
<div v-if="toast.buttons" class="flex mt-2 gap-2 w-full ml-6">
|
|
27
|
+
<div v-for="button in toast.buttons" class="af-toast-button rounded-md bg-lightButtonsBackground hover:bg-lightButtonsHover text-lightButtonsText dark:bg-darkPrimary dark:hover:bg-darkButtonsBackground dark:text-darkButtonsText">
|
|
28
|
+
<button @click="onButtonClick(button.value)" class="px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/10">
|
|
29
|
+
{{ button.label }}
|
|
30
|
+
</button>
|
|
32
31
|
</div>
|
|
33
32
|
</div>
|
|
34
33
|
</div>
|