mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 16:14:35 +00:00
fix: conditionally enable buildtime checkbox based on environment type
This commit is contained in:
1 parent
5084464688
commit
7009cef8a4
1 file changed
+10
-6
@@ -80,9 +80,11 @@
|
|||||||
@if ($isSharedVariable)
|
@if ($isSharedVariable)
|
||||||
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
|
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox disabled id="is_buildtime"
|
@if (!$env->is_nixpacks)
|
||||||
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
|
<x-forms.checkbox disabled id="is_buildtime"
|
||||||
label="Available at Buildtime" />
|
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
|
||||||
|
label="Available at Buildtime" />
|
||||||
|
@endif
|
||||||
<x-forms.checkbox disabled id="is_runtime"
|
<x-forms.checkbox disabled id="is_runtime"
|
||||||
helper="Make this variable available in the running container at runtime."
|
helper="Make this variable available in the running container at runtime."
|
||||||
label="Available at Runtime" />
|
label="Available at Runtime" />
|
||||||
@@ -230,9 +232,11 @@
|
|||||||
@if ($isSharedVariable)
|
@if ($isSharedVariable)
|
||||||
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
|
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox disabled id="is_buildtime"
|
@if (!$env->is_nixpacks)
|
||||||
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
|
<x-forms.checkbox disabled id="is_buildtime"
|
||||||
label="Available at Buildtime" />
|
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
|
||||||
|
label="Available at Buildtime" />
|
||||||
|
@endif
|
||||||
<x-forms.checkbox disabled id="is_runtime"
|
<x-forms.checkbox disabled id="is_runtime"
|
||||||
helper="Make this variable available in the running container at runtime."
|
helper="Make this variable available in the running container at runtime."
|
||||||
label="Available at Runtime" />
|
label="Available at Runtime" />
|
||||||
|
|||||||
Reference in new issue
Block a user