This commit is contained in:
Andras Bacsai
2023-06-16 21:16:30 +02:00
parent a4c5105d78
commit 9d6557bacb
9 changed files with 23 additions and 11 deletions

View File

@@ -87,4 +87,10 @@ class Previews extends Component
return general_error_handler(err: $e, that: $this);
}
}
public function previewRefresh()
{
$this->application->previews->each(function ($preview) {
$preview->refresh();
});
}
}

View File

@@ -24,6 +24,9 @@ class Upgrade extends Component
public function upgrade()
{
try {
if ($this->showProgress) {
return;
}
$this->showProgress = true;
resolve(UpdateCoolify::class)(true);
Toaster::success("Upgrading to {$this->latestVersion} version...");