From 907e52572c2fd5589ece164e6c30f6c4c472ebfa Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 31 Jan 2024 08:56:49 +0100 Subject: [PATCH] fix: validate server navbar upated --- app/Livewire/Server/Show.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php index 13ebc97d4..31abe8910 100644 --- a/app/Livewire/Server/Show.php +++ b/app/Livewire/Server/Show.php @@ -11,6 +11,7 @@ class Show extends Component use AuthorizesRequests; public ?Server $server = null; public $parameters = []; + protected $listeners = ['proxyStatusUpdated' => '$refresh']; public function mount() { $this->parameters = get_route_parameters(); @@ -19,14 +20,13 @@ class Show extends Component if (is_null($this->server)) { return redirect()->route('server.index'); } - } catch (\Throwable $e) { return handleError($e, $this); } } public function submit() { - $this->dispatch('serverRefresh',false); + $this->dispatch('serverRefresh', false); } public function render() {