From b282c8412c0f1c25bbe23c37e6f1968d7a5ef245 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 22 Oct 2024 11:40:44 +0200 Subject: [PATCH] Refactor StartSentinel to handle build servers --- app/Actions/Server/StartSentinel.php | 2 +- resources/views/livewire/server/form.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php index ffc5ceecf..f3ac7f5a3 100644 --- a/app/Actions/Server/StartSentinel.php +++ b/app/Actions/Server/StartSentinel.php @@ -11,7 +11,7 @@ class StartSentinel public function handle(Server $server, $version = 'next', bool $restart = false) { - if ($server->isSwarm()) { + if ($server->isSwarm() || $server->isBuildServer()) { return; } if ($restart) { diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index cf071c5e3..e208dcdc3 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -158,7 +158,7 @@ @endif - @if (!$server->isSwarm()) + @if (!$server->isSwarm() && !$server->isBuildServer())

Sentinel

@if ($server->isSentinelEnabled())