fixes test btn and import users default (#647)

This commit is contained in:
mfrances17 2021-06-01 08:15:36 -04:00 committed by GitHub
parent 347a2db8bd
commit ce3eddfa17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View file

@ -339,18 +339,17 @@ export const LdapSettingsConnection = ({
})} })}
/> />
</FormGroup> </FormGroup>
<FormGroup fieldId="kc-test-button">
<Button
isDisabled={!form.formState.isValid}
variant="secondary"
id="kc-test-button"
onClick={() => testLdap()}
>
{t("common:test")}
</Button>
</FormGroup>
</> </>
)} )}
<FormGroup fieldId="kc-test-button">
<Button
variant="secondary"
id="kc-test-button"
onClick={() => testLdap()}
>
{t("common:test")}
</Button>
</FormGroup>
</FormAccess> </FormAccess>
</> </>
); );

View file

@ -47,7 +47,7 @@ export const LdapSettingsSynchronization = ({
> >
<Controller <Controller
name="config.importEnabled" name="config.importEnabled"
defaultValue={["false"]} defaultValue={["true"]}
control={form.control} control={form.control}
render={({ onChange, value }) => ( render={({ onChange, value }) => (
<Switch <Switch