fix: manual update should be executed only once + better UX

This commit is contained in:
Andras Bacsai
2024-11-10 21:26:52 +01:00
parent 15c00bcdd7
commit 704e25100a
3 changed files with 52 additions and 62 deletions

View File

@@ -23,6 +23,9 @@ class Upgrade extends Component
try {
$this->latestVersion = get_latest_version_of_coolify();
$this->isUpgradeAvailable = data_get(InstanceSettings::get(), 'new_version_available', false);
if (isDev()) {
$this->isUpgradeAvailable = true;
}
} catch (\Throwable $e) {
return handleError($e, $this);
}