diff --git a/app/portainer/react/components/switch-field.ts b/app/portainer/react/components/switch-field.ts index aa33f278c..e27260fcf 100644 --- a/app/portainer/react/components/switch-field.ts +++ b/app/portainer/react/components/switch-field.ts @@ -13,6 +13,5 @@ export const switchField = r2a(SwitchField, [ 'disabled', 'onChange', 'featureId', - 'switchValues', 'switchClass', ]); diff --git a/app/react/components/form-components/SwitchField/SwitchField.tsx b/app/react/components/form-components/SwitchField/SwitchField.tsx index 9b07133a3..a45aa8d3d 100644 --- a/app/react/components/form-components/SwitchField/SwitchField.tsx +++ b/app/react/components/form-components/SwitchField/SwitchField.tsx @@ -20,10 +20,6 @@ export interface Props { dataCy?: string; disabled?: boolean; featureId?: FeatureId; - switchValues?: { - on: string; - off: string; - }; } export function SwitchField({ @@ -37,7 +33,6 @@ export function SwitchField({ disabled, onChange, featureId, - switchValues, switchClass, }: Props) { const toggleName = name ? `toggle_${name}` : ''; @@ -64,16 +59,6 @@ export function SwitchField({ featureId={featureId} dataCy={dataCy} /> - {switchValues && checked && ( - - {switchValues.on} - - )} - {switchValues && !checked && ( - - {switchValues.off} - - )} ); } diff --git a/app/react/edge/components/EdgeScriptForm/EdgeScriptSettingsFieldset.tsx b/app/react/edge/components/EdgeScriptForm/EdgeScriptSettingsFieldset.tsx index b5b8b4e17..aaf369029 100644 --- a/app/react/edge/components/EdgeScriptForm/EdgeScriptSettingsFieldset.tsx +++ b/app/react/edge/components/EdgeScriptForm/EdgeScriptSettingsFieldset.tsx @@ -71,7 +71,6 @@ export function EdgeScriptSettingsFieldset({ } label="Allow self-signed certs" labelClass="col-sm-3 col-lg-2" - switchValues={{ on: 'Yes', off: 'No' }} tooltip="When allowing self-signed certificates the edge agent will ignore the domain validation when connecting to Portainer via HTTPS" />