fix
This commit is contained in:
parent
11d33f328e
commit
2c9983046c
@ -10,7 +10,8 @@ class Status extends Component
|
|||||||
public Server $server;
|
public Server $server;
|
||||||
|
|
||||||
protected $listeners = ['proxyStatusUpdated'];
|
protected $listeners = ['proxyStatusUpdated'];
|
||||||
public function proxyStatusUpdated() {
|
public function proxyStatusUpdated()
|
||||||
|
{
|
||||||
$this->server->refresh();
|
$this->server->refresh();
|
||||||
}
|
}
|
||||||
public function getProxyStatus()
|
public function getProxyStatus()
|
||||||
@ -25,10 +26,10 @@ public function getProxyStatus()
|
|||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return general_error_handler(err: $e);
|
return general_error_handler(err: $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public function getProxyStatusWithNoti() {
|
public function getProxyStatusWithNoti()
|
||||||
$this->emit('success', 'Refreshing proxy status.');
|
{
|
||||||
|
$this->emit('success', 'Refreshed proxy status.');
|
||||||
$this->getProxyStatus();
|
$this->getProxyStatus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user