From 76296c1f1979e76b9714639c252676a6b1f878e4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 4 Dec 2023 11:25:24 +0100 Subject: [PATCH] fix: prevent autorefresh of proxy status --- app/Http/Livewire/Server/Proxy/Status.php | 3 +++ resources/views/livewire/server/proxy/status.blade.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Server/Proxy/Status.php b/app/Http/Livewire/Server/Proxy/Status.php index 0c5f274b5..674dd623d 100644 --- a/app/Http/Livewire/Server/Proxy/Status.php +++ b/app/Http/Livewire/Server/Proxy/Status.php @@ -14,6 +14,9 @@ class Status extends Component public int $numberOfPolls = 0; protected $listeners = ['proxyStatusUpdated', 'startProxyPolling']; + public function mount() { + $this->checkProxy(); + } public function startProxyPolling() { $this->checkProxy(); diff --git a/resources/views/livewire/server/proxy/status.blade.php b/resources/views/livewire/server/proxy/status.blade.php index e3184d061..95e1b4a50 100644 --- a/resources/views/livewire/server/proxy/status.blade.php +++ b/resources/views/livewire/server/proxy/status.blade.php @@ -1,6 +1,6 @@
@if ($server->isFunctional()) -
+
@if (data_get($server, 'proxy.status') === 'running') @elseif (data_get($server, 'proxy.status') === 'restarting')