Refactor StartSentinel to handle build servers

This commit is contained in:
Andras Bacsai 2024-10-22 11:40:44 +02:00
parent b5146c0dda
commit b282c8412c
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -158,7 +158,7 @@ class="px-4 py-2 text-gray-800 cursor-pointer hover:bg-gray-100 dark:hover:bg-co
@endif
</div>
</div>
@if (!$server->isSwarm())
@if (!$server->isSwarm() && !$server->isBuildServer())
<div class="flex gap-2 items-center pt-4 pb-2">
<h3>Sentinel</h3>
@if ($server->isSentinelEnabled())