From 475fd6d07201895ad18d199ef33116b0387c71fd Mon Sep 17 00:00:00 2001 From: root Date: Sat, 31 Jan 2026 03:10:02 +0200 Subject: [PATCH] Target notifications component for refresh --- .../views/filament/partials/notifications-refresh.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/filament/partials/notifications-refresh.blade.php b/resources/views/filament/partials/notifications-refresh.blade.php index 9dbbd92..62e70a9 100644 --- a/resources/views/filament/partials/notifications-refresh.blade.php +++ b/resources/views/filament/partials/notifications-refresh.blade.php @@ -15,6 +15,11 @@ } succeed(() => { + if (window.Livewire?.dispatchTo) { + window.Livewire.dispatchTo('notifications', 'notificationsSent'); + return; + } + window.Livewire.dispatch('notificationsSent'); }); });