This commit is contained in:
Andras Bacsai
2023-06-15 10:48:13 +02:00
parent fe51f8fbf7
commit 8b6598ea6b
22 changed files with 380 additions and 231 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Http\Livewire;
use Masmerise\Toaster\Toaster;
use App\Jobs\InstanceAutoUpdateJob;
use Livewire\Component;
class Upgrade extends Component
{
public bool $showProgress = false;
public function upgrade()
{
try {
$this->showProgress = true;
dispatch(new InstanceAutoUpdateJob(force: true));
Toaster::success('Update started.');
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);
}
}
}