diff --git a/dashboard/src/components/EnvComponents/Features.tsx b/dashboard/src/components/EnvComponents/Features.tsx index e028a0a..e7d86c4 100644 --- a/dashboard/src/components/EnvComponents/Features.tsx +++ b/dashboard/src/components/EnvComponents/Features.tsx @@ -8,86 +8,90 @@ const Features = ({ variables, setVariables }: any) => {
{' '} - Disable Features + Features - Disable Login Page: + Login Page: - Disable Email Verification: + Email Verification: - Disable Magic Login Link: + Magic Login Link: - Disable Basic Authentication: + Basic Authentication: - Disable Sign Up: + Sign Up: - Disable Strong Password: + Strong Password: - - Disable Multi Factor Authentication (MFA): - + Multi Factor Authentication (MFA): Note: Enabling this will ignore Enforcing MFA shown below and will also ignore the user MFA setting. @@ -98,15 +102,10 @@ const Features = ({ variables, setVariables }: any) => { variables={variables} setVariables={setVariables} inputType={SwitchInputType.DISABLE_MULTI_FACTOR_AUTHENTICATION} + hasReversedValue /> - - - - Enable Features - - diff --git a/dashboard/src/components/InputField.tsx b/dashboard/src/components/InputField.tsx index aefe49c..059a87c 100644 --- a/dashboard/src/components/InputField.tsx +++ b/dashboard/src/components/InputField.tsx @@ -48,6 +48,8 @@ const InputField = ({ fieldVisibility, setFieldVisibility, availableRoles, + // This prop is added to improve the user experience for the boolean ENV variable having `DISABLE_` prefix, as those values need to be considered in inverted form. + hasReversedValue, ...downshiftProps }: any) => { const props = { @@ -398,7 +400,9 @@ const InputField = ({ { setVariables({ ...variables,