Refactor server form view to conditionally display Sentinel section based on server settings
This commit is contained in:
@@ -275,6 +275,7 @@
|
|||||||
helper="You can define the maximum duration for a deployment to run before timing it out." />
|
helper="You can define the maximum duration for a deployment to run before timing it out." />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@if (isDev())
|
||||||
<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())
|
||||||
@@ -289,7 +290,6 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if (isDev())
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="w-64">
|
<div class="w-64">
|
||||||
<x-forms.checkbox instantSave id="server.settings.is_sentinel_enabled"
|
<x-forms.checkbox instantSave id="server.settings.is_sentinel_enabled"
|
||||||
@@ -321,8 +321,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
|
||||||
<div>Metrics are disabled until a few bugs are fixed.</div>
|
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</form>
|
</form>
|
||||||
|
Reference in New Issue
Block a user