Refactor isExperimentalEnabled function and remove its usage
This commit is contained in:
parent
96ea755a53
commit
23f7932964
2 changed files with 2 additions and 6 deletions
|
|
@ -362,10 +362,6 @@ function isCloud(): bool
|
|||
return ! config('coolify.self_hosted');
|
||||
}
|
||||
|
||||
function isExperimentalEnabled(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
function translate_cron_expression($expression_to_validate): string
|
||||
{
|
||||
if (isset(VALID_CRON_STRINGS[$expression_to_validate])) {
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ class="px-4 py-2 text-gray-800 cursor-pointer hover:bg-gray-100 dark:hover:bg-co
|
|||
</div>
|
||||
</div>
|
||||
@if (!$server->isSwarm() && !$server->isBuildServer())
|
||||
@if (isExperimentalEnabled())
|
||||
@if (isDev())
|
||||
<div class="flex gap-2 items-center pt-4 pb-2">
|
||||
<h3>Sentinel</h3>
|
||||
@if ($server->isSentinelEnabled())
|
||||
|
|
@ -181,7 +181,7 @@ class="px-4 py-2 text-gray-800 cursor-pointer hover:bg-gray-100 dark:hover:bg-co
|
|||
<h3>Sentinel</h3>
|
||||
<div>Sentinel is not available in this version (soon).</div>
|
||||
@endif
|
||||
@if (isExperimentalEnabled())
|
||||
@if (isDev())
|
||||
<div class="flex flex-col gap-2">
|
||||
<div class="w-64">
|
||||
<x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled"
|
||||
|
|
|
|||
Loading…
Reference in a new issue