mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +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:
parent
702be840b4
commit
b7fcb0f362
@ -8,8 +8,6 @@ use Livewire\Component;
|
||||
|
||||
class Upgrade extends Component
|
||||
{
|
||||
public bool $showProgress = false;
|
||||
|
||||
public bool $updateInProgress = false;
|
||||
|
||||
public bool $isUpgradeAvailable = false;
|
||||
|
||||
@ -152,7 +152,7 @@
|
||||
}, 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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user