mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 12:33:03 +00:00
21 lines
423 B
PHP
21 lines
423 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire;
|
|
|
|
use App\Jobs\InstanceAutoUpdateJob;
|
|
use Livewire\Component;
|
|
|
|
class ForceUpgrade extends Component
|
|
{
|
|
public bool $visible = false;
|
|
public function upgrade()
|
|
{
|
|
try {
|
|
$this->visible = true;
|
|
dispatch(new InstanceAutoUpdateJob(force: true));
|
|
} catch (\Exception $e) {
|
|
return general_error_handler($e, $this);
|
|
}
|
|
}
|
|
}
|