From 23f79329641c3f09938cad1f070b7048c2b9f2d3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 24 Oct 2024 13:28:12 +0200 Subject: [PATCH] Refactor isExperimentalEnabled function and remove its usage --- bootstrap/helpers/shared.php | 4 ---- resources/views/livewire/server/form.blade.php | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 35800911b..cd0eb709a 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -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])) { diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index f3293ea0b..bfcd42d90 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -159,7 +159,7 @@ @if (!$server->isSwarm() && !$server->isBuildServer()) - @if (isExperimentalEnabled()) + @if (isDev())

Sentinel

@if ($server->isSentinelEnabled()) @@ -181,7 +181,7 @@

Sentinel

Sentinel is not available in this version (soon).
@endif - @if (isExperimentalEnabled()) + @if (isDev())