mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 08:14:25 +00:00
Fix Alpine state reference and remove unused property in upgrade modal
- 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 <noreply@anthropic.com>
This commit is contained in:
1 parent
702be840b4
commit
b7fcb0f362
2 files changed
+1
-3
No files matched your search
@@ -8,8 +8,6 @@ use Livewire\Component;
|
|||||||
|
|
||||||
class Upgrade extends Component
|
class Upgrade extends Component
|
||||||
{
|
{
|
||||||
public bool $showProgress = false;
|
|
||||||
|
|
||||||
public bool $updateInProgress = false;
|
public bool $updateInProgress = false;
|
||||||
|
|
||||||
public bool $isUpgradeAvailable = false;
|
public bool $isUpgradeAvailable = false;
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
},
|
},
|
||||||
upgrade() {
|
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.currentStatus = 'Update in progress. Pulling new images and preparing to restart Coolify...';
|
||||||
this.checkIfIamDeadInterval = setInterval(() => {
|
this.checkIfIamDeadInterval = setInterval(() => {
|
||||||
fetch('/api/health')
|
fetch('/api/health')
|
||||||
|
|||||||
Reference in new issue
Block a user