refactor(edge-compute): remove toggle from settings (release) [EE-2686] (#6619)

pull/6621/head
itsconquest 3 years ago committed by GitHub
parent 6695d75468
commit ee42e44246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,7 +118,7 @@ export function SettingsEdgeCompute({ settings, onSubmit }: Props) {
<FormControl
inputId="edge_enforce_id"
label="Enforce environment ID"
label="Enforce use of Portainer generated Edge IDs"
size="medium"
errors={errors.EnforceEdgeID}
>
@ -133,23 +133,6 @@ export function SettingsEdgeCompute({ settings, onSubmit }: Props) {
/>
</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="col-sm-12">
<LoadingButton

Loading…
Cancel
Save