This commit is contained in:
hackerESQ
2025-09-28 21:13:52 -05:00
parent 8908e2da02
commit c6032c5b66
7 changed files with 88 additions and 86 deletions
@@ -6,10 +6,10 @@
@persist('toast')
<div
x-cloak
x-data="{ show: false, timer: '', toast: ''}"
x-data="{ show: false, timer: '', toast: '' }"
@toast.window="
clearTimeout(timer);
toast = $event.detail.toast
toast = $event.detail.toast;
setTimeout(() => show = true, 100);
timer = setTimeout(() => show = false, $event.detail.toast.timeout);
">