From b7fcb0f362e83ec3b64c39bbfd37e5d23e40534e Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:48:52 +0100 Subject: [PATCH] Fix Alpine state reference and remove unused property in upgrade modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix incorrect Alpine state reference: Changed `this.$wire.showProgress` to `this.showProgress` in upgrade.blade.php:155 - Remove unused `$showProgress` property from Upgrade.php Livewire component - The backend property was never set or used; all progress tracking is handled by Alpine state - This fixes potential race conditions where the guard condition was not working as intended 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/Upgrade.php | 2 -- resources/views/livewire/upgrade.blade.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Livewire/Upgrade.php b/app/Livewire/Upgrade.php index e50085c64..f13baa7a7 100644 --- a/app/Livewire/Upgrade.php +++ b/app/Livewire/Upgrade.php @@ -8,8 +8,6 @@ class Upgrade extends Component { - public bool $showProgress = false; - public bool $updateInProgress = false; public bool $isUpgradeAvailable = false; diff --git a/resources/views/livewire/upgrade.blade.php b/resources/views/livewire/upgrade.blade.php index 4063f19ef..37e43935d 100644 --- a/resources/views/livewire/upgrade.blade.php +++ b/resources/views/livewire/upgrade.blade.php @@ -152,7 +152,7 @@ class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">Cancel }, 2000); }, upgrade() { - if (this.checkIfIamDeadInterval || this.$wire.showProgress) return true; + if (this.checkIfIamDeadInterval || this.showProgress) return true; this.currentStatus = 'Update in progress. Pulling new images and preparing to restart Coolify...'; this.checkIfIamDeadInterval = setInterval(() => { fetch('/api/health')