An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(server): implement refreshServer method and update navbar event listener for improved server state management
Andras Bacsaif9ed02a0b7b9
diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.phpindex 055290580e..beefed12ac 100644--- a/app/Livewire/Server/Navbar.php+++ b/app/Livewire/Server/Navbar.php@@ -32,7 +32,7 @@ class Navbar extends Component$teamId = auth()->user()->currentTeam()->id;return [- 'refreshServerShow' => '$refresh',+ 'refreshServerShow' => 'refreshServer',"echo-private:team.{$teamId},ProxyStatusChangedUI" => 'showNotification',];}@@ -134,6 +134,12 @@ class Navbar extends Component}+ public function refreshServer()+ {+ $this->server->refresh();+ $this->server->load('settings');+ }+public function render(){return view('livewire.server.navbar');diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.phpindex 202350220d..473e0b60e3 100644--- a/app/Livewire/Server/Show.php+++ b/app/Livewire/Server/Show.php@@ -310,6 +310,8 @@ class Show extends Component$this->dispatch('info', 'Sentinel has been disabled as build servers cannot run Sentinel.');}$this->submit();+ // Dispatch event to refresh the navbar+ $this->dispatch('refreshServerShow');} catch (\Throwable $e) {return handleError($e, $this);}