From 644f15e80daa0790a06812b6cd824384f2c7a389 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 3 May 2024 10:54:44 +0200 Subject: [PATCH] Refactor server navbar and proxy components --- .../views/components/server/navbar.blade.php | 16 ++-------------- .../views/livewire/server/proxy/deploy.blade.php | 6 +++++- .../views/livewire/server/proxy/status.blade.php | 6 +++++- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/resources/views/components/server/navbar.blade.php b/resources/views/components/server/navbar.blade.php index 5afee652c..2130d0031 100644 --- a/resources/views/components/server/navbar.blade.php +++ b/resources/views/components/server/navbar.blade.php @@ -2,13 +2,7 @@

Server

- @if ( - $server->proxyType() !== 'NONE' && - $server->isFunctional() && - !$server->isSwarmWorker() && - !$server->settings->is_build_server) - - @endif +
{{ data_get($server, 'name') }}.
diff --git a/resources/views/livewire/server/proxy/deploy.blade.php b/resources/views/livewire/server/proxy/deploy.blade.php index 1f00a7b48..32ddbb890 100644 --- a/resources/views/livewire/server/proxy/deploy.blade.php +++ b/resources/views/livewire/server/proxy/deploy.blade.php @@ -1,5 +1,9 @@
- @if ($server->isFunctional() && $server->proxyType() !== 'NONE') + @if ( + $server->proxyType() !== 'NONE' && + $server->isFunctional() && + !$server->isSwarmWorker() && + !$server->settings->is_build_server) Proxy Status diff --git a/resources/views/livewire/server/proxy/status.blade.php b/resources/views/livewire/server/proxy/status.blade.php index 8200d4420..8a066d0a3 100644 --- a/resources/views/livewire/server/proxy/status.blade.php +++ b/resources/views/livewire/server/proxy/status.blade.php @@ -1,5 +1,9 @@
- @if ($server->isFunctional()) + @if ( + $server->proxyType() !== 'NONE' && + $server->isFunctional() && + !$server->isSwarmWorker() && + !$server->settings->is_build_server)
@if (data_get($server, 'proxy.status') === 'running')