From fcc52f943c1d103acef4f45b10252556134310d1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sun, 2 Nov 2025 17:15:04 +0100 Subject: [PATCH] fix: use x-show for S3 download message to hide reactively on completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - "Downloading from S3..." message stayed visible after download finished - @if conditional only evaluates on server-side render, not reactive - Event listener sets s3DownloadInProgress=false but view doesn't update Solution: - Wrap outer container with x-show="s3DownloadInProgress" for reactive hiding - Keep @if for activity-monitor to control when it's rendered in DOM - Message and success state now toggle reactively via Alpine.js entangle - When download finishes, message hides immediately without page refresh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../project/database/import.blade.php | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/resources/views/livewire/project/database/import.blade.php b/resources/views/livewire/project/database/import.blade.php index 9cec8f78e..2cbfc6943 100644 --- a/resources/views/livewire/project/database/import.blade.php +++ b/resources/views/livewire/project/database/import.blade.php @@ -147,25 +147,25 @@ - @if ($s3DownloadInProgress) -
-
Downloading from S3... This may take a few minutes for large - backups.
+
+
Downloading from S3... This may take a few minutes for large + backups.
+ @if ($s3DownloadInProgress) + @endif +
+ +
+
File downloaded successfully and ready for restore.
+
+ + Restore Database from S3 + + + Cancel +
- @elseif ($s3DownloadedFile) -
-
File downloaded successfully and ready for restore.
-
- - Restore Database from S3 - - - Cancel - -
-
- @endif +
@endif