Hide brokers on login page by default when linking them to organizations

Closes #33415

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
Pedro Igor 2024-10-02 11:26:48 -03:00
parent f60be4bf8e
commit b26febc32a
2 changed files with 1 additions and 2 deletions

View file

@ -48,7 +48,6 @@ export const IdentityProviderSelect = ({
const {
control,
getValues,
setValue,
formState: { errors },
} = useFormContext();
const values: string[] | undefined = getValues(name!);
@ -201,7 +200,6 @@ export const IdentityProviderSelect = ({
selected={field.value}
onSelect={(_, v) => {
const idp = v as IdentityProviderRepresentation;
setValue("hideOnLogin", idp.hideOnLogin);
const option = idp.alias!;
if (variant !== "typeaheadMulti") {
const removed = field.value.includes(option);

View file

@ -148,6 +148,7 @@ export const LinkIdentityProviderModal = ({
name="hideOnLogin"
label={t("hideOnLoginPage")}
labelIcon={t("hideOnLoginPageHelp")}
defaultValue={true}
/>
<DefaultSwitchControl
name={convertAttributeNameToForm(