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:
parent
d493aa69ca
commit
1f568d8888
2 changed files with 6 additions and 1 deletions
|
@ -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={[
|
||||
|
|
|
@ -51,6 +51,7 @@ export const LdapMapperHardcodedLdapRole = ({
|
|||
<AddRoleMappingModal
|
||||
id=""
|
||||
type="role"
|
||||
isLDAPmapper
|
||||
onAssign={selectRoles}
|
||||
isRadio={true}
|
||||
onClose={() => setShowAssign(false)}
|
||||
|
|
Loading…
Reference in a new issue