From 4faf7191e0069b4c7128463a8e3039f16d2c489d Mon Sep 17 00:00:00 2001 From: Venelin Kochev Date: Fri, 24 Apr 2026 19:57:57 +0300 Subject: [PATCH] Manage send-test loading with Alpine Add an Alpine "sending" state and switch the send-test button from Livewire loading directives to Alpine handlers. The button now sets sending=true, calls $wire.sendTest(...).finally(() => sending=false), and is disabled via x-bind while sending. Loading/sent UI toggles were converted from wire:loading/wire:target to x-show and the existing notifications-test-sent window event remains for the queued message. This provides immediate client-side feedback and prevents duplicate clicks during the test-send operation. --- .../views/livewire/settings/notifications.blade.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/views/livewire/settings/notifications.blade.php b/resources/views/livewire/settings/notifications.blade.php index 596779a..99eaf75 100644 --- a/resources/views/livewire/settings/notifications.blade.php +++ b/resources/views/livewire/settings/notifications.blade.php @@ -46,19 +46,18 @@ class="btn btn-ghost btn-sm"> @endif @if ($channel->is_active && $channel->isConfigured()) -
@endif