Refactor StartSentinel to handle build servers
This commit is contained in:
@@ -11,7 +11,7 @@ class StartSentinel
|
|||||||
|
|
||||||
public function handle(Server $server, $version = 'next', bool $restart = false)
|
public function handle(Server $server, $version = 'next', bool $restart = false)
|
||||||
{
|
{
|
||||||
if ($server->isSwarm()) {
|
if ($server->isSwarm() || $server->isBuildServer()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($restart) {
|
if ($restart) {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if (!$server->isSwarm())
|
@if (!$server->isSwarm() && !$server->isBuildServer())
|
||||||
<div class="flex gap-2 items-center pt-4 pb-2">
|
<div class="flex gap-2 items-center pt-4 pb-2">
|
||||||
<h3>Sentinel</h3>
|
<h3>Sentinel</h3>
|
||||||
@if ($server->isSentinelEnabled())
|
@if ($server->isSentinelEnabled())
|
||||||
|
|||||||
Reference in New Issue
Block a user