Fix modal title in User Fed -> hardcoded-ldap-mapper (#1643)

* fix hardcoded ldap modal

* groups section from master

* revert groups onclick
This commit is contained in:
Jenny 2021-12-08 09:16:45 -05:00 committed by GitHub
parent d493aa69ca
commit 1f568d8888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -32,6 +32,7 @@ type AddRoleMappingModalProps = {
isRadio?: boolean;
onAssign: (rows: Row[]) => void;
onClose: () => void;
isLDAPmapper?: boolean;
};
type ClientRole = ClientRepresentation & {
@ -47,6 +48,7 @@ export const AddRoleMappingModal = ({
name,
type,
isRadio = false,
isLDAPmapper,
onAssign,
onClose,
}: AddRoleMappingModalProps) => {
@ -245,7 +247,9 @@ export const AddRoleMappingModal = ({
return (
<Modal
variant={ModalVariant.large}
title={t("assignRolesTo", { client: name })}
title={
isLDAPmapper ? t("assignRole") : t("assignRolesTo", { client: name })
}
isOpen={true}
onClose={onClose}
actions={[

View file

@ -51,6 +51,7 @@ export const LdapMapperHardcodedLdapRole = ({
<AddRoleMappingModal
id=""
type="role"
isLDAPmapper
onAssign={selectRoles}
isRadio={true}
onClose={() => setShowAssign(false)}