An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(environment-variable): remove buildtime/runtime options and improve comment field
Andras Bacsaied3b5d096c06
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.phpindex 86faeeeb4f..4db35674a0 100644--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php@@ -34,12 +34,6 @@<div class="flex flex-wrap w-full items-center gap-4">@if (!$is_redis_credential)@if ($type === 'service')- <x-forms.checkbox instantSave id="is_buildtime"- helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."- label="Available at Buildtime" />- <x-forms.checkbox instantSave id="is_runtime"- helper="Make this variable available in the running container at runtime."- label="Available at Runtime" />@if (!$isMagicVariable)<x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /><x-forms.checkbox instantSave id="is_literal"@@ -86,12 +80,6 @@<div class="flex flex-wrap w-full items-center gap-4">@if (!$is_redis_credential)@if ($type === 'service')- <x-forms.checkbox disabled id="is_buildtime"- helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."- label="Available at Buildtime" />- <x-forms.checkbox disabled id="is_runtime"- helper="Make this variable available in the running container at runtime."- label="Available at Runtime" />@if (!$isMagicVariable)<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /><x-forms.checkbox disabled id="is_literal"@@ -145,10 +133,9 @@<x-forms.input disabled type="password" id="real_value" />@endif</div>- @if (!$isMagicVariable)- <x-forms.input disabled id="comment" label="Comment"- helper="Add a note to document what this environment variable is used for." maxlength="256" />- @endif+ <x-forms.input instantSave id="comment" label="Comment"+ placeholder="{{ $isMagicVariable ? 'This env cannot be edited manually, it is handled by Coolify.' : '' }}"+ helper="Add a note to document what this environment variable is used for." maxlength="256" /></div>@else<div class="flex flex-col w-full gap-2">@@ -178,10 +165,9 @@<x-forms.input disabled type="password" id="real_value" />@endif</div>- @if (!$isMagicVariable)- <x-forms.input disabled id="comment" label="Comment"- helper="Add a note to document what this environment variable is used for." maxlength="256" />- @endif+ <x-forms.input disabled id="comment" label="Comment"+ placeholder="{{ $isMagicVariable ? 'This env cannot be edited manually, it is handled by Coolify.' : '' }}"+ helper="Add a note to document what this environment variable is used for." maxlength="256" /></div>@endcan@can('update', $this->env)@@ -189,12 +175,6 @@<div class="flex flex-wrap w-full items-center gap-4">@if (!$is_redis_credential)@if ($type === 'service')- <x-forms.checkbox instantSave id="is_buildtime"- helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."- label="Available at Buildtime" />- <x-forms.checkbox instantSave id="is_runtime"- helper="Make this variable available in the running container at runtime."- label="Available at Runtime" />@if (!$isMagicVariable)<x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /><x-forms.checkbox instantSave id="is_literal"@@ -258,6 +238,10 @@step2ButtonText="Permanently Delete" />@endif</div>+ @elseif ($type === 'service')+ <div class="flex w-full justify-end gap-2">+ <x-forms.button wire:click='lock'>Lock</x-forms.button>+ </div>@endif</div>@else@@ -265,12 +249,6 @@<div class="flex flex-wrap w-full items-center gap-4">@if (!$is_redis_credential)@if ($type === 'service')- <x-forms.checkbox disabled id="is_buildtime"- helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."- label="Available at Buildtime" />- <x-forms.checkbox disabled id="is_runtime"- helper="Make this variable available in the running container at runtime."- label="Available at Runtime" />@if (!$isMagicVariable)<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /><x-forms.checkbox disabled id="is_literal"