mirror of https://github.com/portainer/portainer
fix(containers): align switches [EE-6314] (#10616)
parent
51474262eb
commit
a0f583a17d
|
@ -107,6 +107,7 @@ export function BaseForm({
|
||||||
onChange={(alwaysPull) =>
|
onChange={(alwaysPull) =>
|
||||||
setFieldValue('alwaysPull', alwaysPull)
|
setFieldValue('alwaysPull', alwaysPull)
|
||||||
}
|
}
|
||||||
|
labelClass="col-sm-3 col-lg-2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -126,6 +127,7 @@ export function BaseForm({
|
||||||
setFieldValue('enableWebhook', enableWebhook)
|
setFieldValue('enableWebhook', enableWebhook)
|
||||||
}
|
}
|
||||||
featureId={FeatureId.CONTAINER_WEBHOOK}
|
featureId={FeatureId.CONTAINER_WEBHOOK}
|
||||||
|
labelClass="col-sm-3 col-lg-2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -143,6 +145,7 @@ export function BaseForm({
|
||||||
onChange={(publishAllPorts) =>
|
onChange={(publishAllPorts) =>
|
||||||
setFieldValue('publishAllPorts', publishAllPorts)
|
setFieldValue('publishAllPorts', publishAllPorts)
|
||||||
}
|
}
|
||||||
|
labelClass="col-sm-3 col-lg-2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</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."
|
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}
|
checked={values.autoRemove}
|
||||||
onChange={(autoRemove) => setFieldValue('autoRemove', autoRemove)}
|
onChange={(autoRemove) => setFieldValue('autoRemove', autoRemove)}
|
||||||
|
labelClass="col-sm-3 col-lg-2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,12 +37,13 @@ export function AccessControlForm({
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<div className="col-sm-12">
|
<div className="col-sm-12">
|
||||||
<SwitchField
|
<SwitchField
|
||||||
|
dataCy="portainer-accessMgmtToggle"
|
||||||
checked={accessControlEnabled}
|
checked={accessControlEnabled}
|
||||||
name={withNamespace('accessControlEnabled')}
|
name={withNamespace('accessControlEnabled')}
|
||||||
label="Enable access control"
|
label="Enable access control"
|
||||||
|
labelClass="col-sm-3 col-lg-2"
|
||||||
tooltip="When enabled, you can restrict the access and management of this resource."
|
tooltip="When enabled, you can restrict the access and management of this resource."
|
||||||
onChange={handleToggleEnable}
|
onChange={handleToggleEnable}
|
||||||
dataCy="portainer-accessMgmtToggle"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue