fix(Status): conditionally check proxy status and refresh button based on force_stop state
This commit is contained in:
@@ -34,9 +34,6 @@ class Status extends Component
|
||||
public function checkProxy(bool $notification = false)
|
||||
{
|
||||
try {
|
||||
if ($this->server->proxy->force_stop) {
|
||||
return;
|
||||
}
|
||||
if ($this->polling) {
|
||||
if ($this->numberOfPolls >= 10) {
|
||||
$this->polling = false;
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<div x-init="$wire.checkProxy()" class="flex gap-2">
|
||||
<div @if (data_get($server, 'proxy.force_stop', false) === false) x-init="$wire.checkProxy()" @endif class="flex gap-2">
|
||||
@if (data_get($server, 'proxy.force_stop', false) === false)
|
||||
<x-forms.button wire:click='checkProxy(true)' :showLoadingIndicator="false">Refresh</x-forms.button>
|
||||
@endif
|
||||
@if (data_get($server, 'proxy.status') === 'running')
|
||||
<x-status.running status="Proxy Running" />
|
||||
@elseif (data_get($server, 'proxy.status') === 'restarting')
|
||||
|
Reference in New Issue
Block a user