This commit is contained in:
Andras Bacsai
2023-05-26 12:24:59 +02:00
parent e59cad8265
commit e0227e7d1c
7 changed files with 82 additions and 27 deletions

View File

@@ -7,10 +7,11 @@ use Livewire\Component;
class ForceUpgrade extends Component
{
public bool $visible = false;
public function upgrade()
{
try {
$this->emit('updateInitiated');
$this->visible = true;
dispatch(new InstanceAutoUpdateJob(force: true));
} catch (\Exception $e) {
return general_error_handler($e, $this);