fix(containers): align switches [EE-6314] (#10616)

pull/10458/head
Chaim Lev-Ari 1 year ago committed by GitHub
parent 51474262eb
commit a0f583a17d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,6 +107,7 @@ export function BaseForm({
onChange={(alwaysPull) =>
setFieldValue('alwaysPull', alwaysPull)
}
labelClass="col-sm-3 col-lg-2"
/>
</div>
</div>
@ -126,6 +127,7 @@ export function BaseForm({
setFieldValue('enableWebhook', enableWebhook)
}
featureId={FeatureId.CONTAINER_WEBHOOK}
labelClass="col-sm-3 col-lg-2"
/>
</div>
</div>
@ -143,6 +145,7 @@ export function BaseForm({
onChange={(publishAllPorts) =>
setFieldValue('publishAllPorts', publishAllPorts)
}
labelClass="col-sm-3 col-lg-2"
/>
</div>
</div>
@ -179,6 +182,7 @@ export function BaseForm({
tooltip="When enabled, Portainer will automatically remove the container when it exits. This is useful when you want to use the container only once."
checked={values.autoRemove}
onChange={(autoRemove) => setFieldValue('autoRemove', autoRemove)}
labelClass="col-sm-3 col-lg-2"
/>
</div>
</div>

@ -37,12 +37,13 @@ export function AccessControlForm({
<div className="form-group">
<div className="col-sm-12">
<SwitchField
dataCy="portainer-accessMgmtToggle"
checked={accessControlEnabled}
name={withNamespace('accessControlEnabled')}
label="Enable access control"
labelClass="col-sm-3 col-lg-2"
tooltip="When enabled, you can restrict the access and management of this resource."
onChange={handleToggleEnable}
dataCy="portainer-accessMgmtToggle"
/>
</div>
</div>

Loading…
Cancel
Save