From 50243278fd6f3f4b526f50e77118fea2fbae2b11 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 23 Oct 2026 19:31:57 +0200 Subject: [PATCH] fix(ui): show traffic analytics loading state on the button Co-Authored-By: Claude Opus 5.5 --- .../views/components/modal-confirmation.blade.php | 14 ++++++++------ .../server/traffic-analytics-settings.blade.php | 4 ---- .../ToggleTrafficAnalyticsTest.php | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php index 4bda77b555..b59d4c39f1 100644 --- a/resources/views/components/modal-confirmation.blade.php +++ b/resources/views/components/modal-confirmation.blade.php @@ -44,6 +44,8 @@ $effectiveStep2ButtonText = ($skipPasswordConfirmation && $step2ButtonText === 'Continue') ? 'Confirm' : $step2ButtonText; // Prefer a rich HTML button title when callers pass (ComponentSlot). $resolvedButtonTitle = $buttonTitle instanceof ComponentSlot ? $buttonTitle : $buttonTitle; + // Show a loading state on the trigger button while the submit action runs (needs Livewire updates, so not with wire:ignore). + $triggerWireTarget = $ignoreWire || $dispatchAction ? '' : $submitAction; @endphp
+ {{ $resolvedButtonTitle }} @else - + {{ $resolvedButtonTitle }} @endif @elseif($isHighlightedButton) @if ($buttonFullWidth) - + {{ $resolvedButtonTitle }} @else - + {{ $resolvedButtonTitle }} @endif @else @if ($buttonFullWidth) - + {{ $resolvedButtonTitle }} @else - + {{ $resolvedButtonTitle }} @endif diff --git a/resources/views/livewire/server/traffic-analytics-settings.blade.php b/resources/views/livewire/server/traffic-analytics-settings.blade.php index 177bb1a59a..047175cdf8 100644 --- a/resources/views/livewire/server/traffic-analytics-settings.blade.php +++ b/resources/views/livewire/server/traffic-analytics-settings.blade.php @@ -10,8 +10,6 @@ @if ($isTrafficAnalyticsEnabled)
- assertSee('Enabling traffic analytics will restart Sentinel and the proxy. Your applications will experience a brief interruption.'); });