fix: prevent autorefresh of proxy status
This commit is contained in:
parent
c25baf69e1
commit
76296c1f19
2 changed files with 4 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue