mirror of https://github.com/portainer/portainer
refactor(edge-compute): remove toggle from settings (release) [EE-2686] (#6619)
parent
6695d75468
commit
ee42e44246
|
@ -118,7 +118,7 @@ export function SettingsEdgeCompute({ settings, onSubmit }: Props) {
|
||||||
|
|
||||||
<FormControl
|
<FormControl
|
||||||
inputId="edge_enforce_id"
|
inputId="edge_enforce_id"
|
||||||
label="Enforce environment ID"
|
label="Enforce use of Portainer generated Edge ID’s"
|
||||||
size="medium"
|
size="medium"
|
||||||
errors={errors.EnforceEdgeID}
|
errors={errors.EnforceEdgeID}
|
||||||
>
|
>
|
||||||
|
@ -133,23 +133,6 @@ export function SettingsEdgeCompute({ settings, onSubmit }: Props) {
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
<FormControl
|
|
||||||
inputId="edge_tofc"
|
|
||||||
label="Trust on first connect"
|
|
||||||
size="medium"
|
|
||||||
errors={errors.DisableTrustOnFirstConnect}
|
|
||||||
>
|
|
||||||
<Switch
|
|
||||||
id="edge_disable_tofc"
|
|
||||||
name="edge_disable_tofc"
|
|
||||||
className="space-right"
|
|
||||||
checked={!values.DisableTrustOnFirstConnect}
|
|
||||||
onChange={(e) =>
|
|
||||||
setFieldValue('DisableTrustOnFirstConnect', !e.valueOf())
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</FormControl>
|
|
||||||
|
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<div className="col-sm-12">
|
<div className="col-sm-12">
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
|
|
Loading…
Reference in New Issue