fix: validation

This commit is contained in:
Andras Bacsai
2023-08-28 20:29:44 +02:00
parent f48a912287
commit 77667be570
2 changed files with 18 additions and 15 deletions

View File

@@ -12,10 +12,12 @@ class Status extends Component
public function get_status()
{
dispatch_sync(new ProxyContainerStatusJob(
server: $this->server
));
$this->server->refresh();
$this->emit('proxyStatusUpdated');
if (data_get($this->server,'settings.is_usable')) {
dispatch_sync(new ProxyContainerStatusJob(
server: $this->server
));
$this->server->refresh();
$this->emit('proxyStatusUpdated');
}
}
}