feat(ui): conditionally enable advanced application settings based on label readonly status
This commit is contained in:
@@ -15,14 +15,27 @@
|
|||||||
@endif
|
@endif
|
||||||
<x-forms.checkbox helper="Disable Docker build cache on every deployment." instantSave id="disableBuildCache"
|
<x-forms.checkbox helper="Disable Docker build cache on every deployment." instantSave id="disableBuildCache"
|
||||||
label="Disable Build Cache" />
|
label="Disable Build Cache" />
|
||||||
<x-forms.checkbox
|
|
||||||
helper="Your application will be available only on https if your domain starts with https://..."
|
@if ($application->settings->is_container_label_readonly_enabled)
|
||||||
instantSave id="isForceHttpsEnabled" label="Force Https" />
|
<x-forms.checkbox
|
||||||
<x-forms.checkbox label="Enable Gzip Compression"
|
helper="Your application will be available only on https if your domain starts with https://..."
|
||||||
helper="You can disable gzip compression if you want. Some services are compressing data by default. In this case, you do not need this."
|
instantSave id="isForceHttpsEnabled" label="Force Https" />
|
||||||
instantSave id="isGzipEnabled" />
|
<x-forms.checkbox label="Enable Gzip Compression"
|
||||||
<x-forms.checkbox helper="Strip Prefix is used to remove prefixes from paths. Like /api/ to /api."
|
helper="You can disable gzip compression if you want. Some services are compressing data by default. In this case, you do not need this."
|
||||||
instantSave id="isStripprefixEnabled" label="Strip Prefixes" />
|
instantSave id="isGzipEnabled" />
|
||||||
|
<x-forms.checkbox helper="Strip Prefix is used to remove prefixes from paths. Like /api/ to /api."
|
||||||
|
instantSave id="isStripprefixEnabled" label="Strip Prefixes" />
|
||||||
|
@else
|
||||||
|
<x-forms.checkbox disabled
|
||||||
|
helper="Readonly labels are disabled. You need to set the labels in the labels section." instantSave
|
||||||
|
id="isForceHttpsEnabled" label="Force Https" />
|
||||||
|
<x-forms.checkbox label="Enable Gzip Compression" disabled
|
||||||
|
helper="Readonly labels are disabled. You need to set the labels in the labels section." instantSave
|
||||||
|
id="isGzipEnabled" />
|
||||||
|
<x-forms.checkbox
|
||||||
|
helper="Readonly labels are disabled. You need to set the labels in the labels section." disabled
|
||||||
|
instantSave id="isStripprefixEnabled" label="Strip Prefixes" />
|
||||||
|
@endif
|
||||||
@if ($application->build_pack === 'dockercompose')
|
@if ($application->build_pack === 'dockercompose')
|
||||||
<h3>Docker Compose</h3>
|
<h3>Docker Compose</h3>
|
||||||
<x-forms.checkbox instantSave id="isRawComposeDeploymentEnabled" label="Raw Compose Deployment"
|
<x-forms.checkbox instantSave id="isRawComposeDeploymentEnabled" label="Raw Compose Deployment"
|
||||||
|
Reference in New Issue
Block a user