feat(ui): display current version in settings dropdown and update UI accordingly

This commit is contained in:
Andras Bacsai
2025-09-01 16:23:14 +02:00
parent 0bfffb503e
commit 9db8b62219
2 changed files with 13 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ class SettingsDropdown extends Component
return app(ChangelogService::class)->getEntriesForUser($user);
}
public function getCurrentVersionProperty()
{
return 'v'.config('constants.coolify.version');
}
public function openWhatsNewModal()
{
$this->showWhatsNewModal = true;
@@ -62,6 +67,7 @@ class SettingsDropdown extends Component
return view('livewire.settings-dropdown', [
'entries' => $this->entries,
'unreadCount' => $this->unreadCount,
'currentVersion' => $this->currentVersion,
]);
}
}