An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(Status): conditionally check proxy status and refresh button based on force_stop state
Andras Bacsai68c2c7fb81b8
diff --git a/app/Livewire/Server/Proxy/Status.php b/app/Livewire/Server/Proxy/Status.phpindex 869f923087..f4f18381f8 100644--- a/app/Livewire/Server/Proxy/Status.php+++ b/app/Livewire/Server/Proxy/Status.php@@ -34,9 +34,6 @@ class Status extends Componentpublic function checkProxy(bool $notification = false){try {- if ($this->server->proxy->force_stop) {- return;- }if ($this->polling) {if ($this->numberOfPolls >= 10) {$this->polling = false;diff --git a/resources/views/livewire/server/proxy/status.blade.php b/resources/views/livewire/server/proxy/status.blade.phpindex 5aa3ca7650..472625dd69 100644--- a/resources/views/livewire/server/proxy/status.blade.php+++ b/resources/views/livewire/server/proxy/status.blade.php@@ -1,5 +1,7 @@-<div x-init="$wire.checkProxy()" class="flex gap-2">- <x-forms.button wire:click='checkProxy(true)' :showLoadingIndicator="false">Refresh</x-forms.button>+<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')