From 2c9983046cf7101ff1aeca9dc5a4c70a83f3b68f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 11 Sep 2023 22:43:07 +0200 Subject: [PATCH] fix --- app/Http/Livewire/Server/Proxy/Status.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Livewire/Server/Proxy/Status.php b/app/Http/Livewire/Server/Proxy/Status.php index be0189f54..9ecf318a8 100644 --- a/app/Http/Livewire/Server/Proxy/Status.php +++ b/app/Http/Livewire/Server/Proxy/Status.php @@ -10,7 +10,8 @@ class Status extends Component public Server $server; protected $listeners = ['proxyStatusUpdated']; - public function proxyStatusUpdated() { + public function proxyStatusUpdated() + { $this->server->refresh(); } public function getProxyStatus() @@ -25,10 +26,10 @@ public function getProxyStatus() } catch (\Throwable $e) { return general_error_handler(err: $e); } - } - public function getProxyStatusWithNoti() { - $this->emit('success', 'Refreshing proxy status.'); + public function getProxyStatusWithNoti() + { + $this->emit('success', 'Refreshed proxy status.'); $this->getProxyStatus(); } }