This commit is contained in:
Andras Bacsai
2023-05-25 15:47:27 +02:00
parent b9057d05a1
commit 62a214920d
9 changed files with 164 additions and 69 deletions

View File

@@ -9,7 +9,7 @@ class ForceUpgrade extends Component
{
public function upgrade()
{
dispatch_sync(new InstanceAutoUpdateJob(force: true));
$this->emit('updateInitiated');
dispatch_sync(new InstanceAutoUpdateJob(force: true));
}
}

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class Upgrading extends Component
{
public bool $visible = false;
protected $listeners = ['updateInitiated'];
public function updateInitiated()
{
$this->visible = true;
}
}