fix: conditionally enable buildtime checkbox based on environment type
This commit is contained in:
parent
5084464688
commit
7009cef8a4
1 changed files with 10 additions and 6 deletions
|
|
@ -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" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue