diff --git a/resources/views/components/notifications/event-toast.blade.php b/resources/views/components/notifications/event-toast.blade.php index 32a118e..9ea54b8 100644 --- a/resources/views/components/notifications/event-toast.blade.php +++ b/resources/views/components/notifications/event-toast.blade.php @@ -13,7 +13,11 @@ type: event.detail.type, }; - setTimeout(() => toast = null, 4000); + const delay = event.detail.timeout ?? 4000; + + if (delay > 0) { + setTimeout(() => toast = null, delay); + } }) " class="toast {{ $position }} z-50"