fix: prevent autorefresh of proxy status

This commit is contained in:
Andras Bacsai committed 2023-12-04 11:25:24 +01:00
1 parent c25baf69e1
commit 76296c1f19
2 files changed
+4 -1

No files matched your search

@@ -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();
@@ -1,6 +1,6 @@
<div>
@if ($server->isFunctional())
<div class="flex gap-2" wire:poll.5000ms='checkProxy'>
<div class="flex gap-2">
@if (data_get($server, 'proxy.status') === 'running')
<x-status.running status="Proxy Running" />
@elseif (data_get($server, 'proxy.status') === 'restarting')