parent
a2bdfab9c5
commit
92f26b9f7e
1 changed files with 22 additions and 18 deletions
|
@ -182,24 +182,28 @@ export default function LdapMapperDetails() {
|
|||
<DropdownItem key="delete" onClick={toggleDeleteDialog}>
|
||||
{t("common:delete")}
|
||||
</DropdownItem>,
|
||||
mapper?.metadata.fedToKeycloakSyncSupported && (
|
||||
<DropdownItem
|
||||
key="fedSync"
|
||||
onClick={() => sync("fedToKeycloak")}
|
||||
>
|
||||
{t("syncLDAPGroupsToKeycloak")}
|
||||
</DropdownItem>
|
||||
),
|
||||
mapper?.metadata.keycloakToFedSyncSupported && (
|
||||
<DropdownItem
|
||||
key="ldapSync"
|
||||
onClick={() => {
|
||||
sync("keycloakToFed");
|
||||
}}
|
||||
>
|
||||
{t("syncKeycloakGroupsToLDAP")}
|
||||
</DropdownItem>
|
||||
),
|
||||
...(mapper?.metadata.fedToKeycloakSyncSupported
|
||||
? [
|
||||
<DropdownItem
|
||||
key="fedSync"
|
||||
onClick={() => sync("fedToKeycloak")}
|
||||
>
|
||||
{t("syncLDAPGroupsToKeycloak")}
|
||||
</DropdownItem>,
|
||||
]
|
||||
: []),
|
||||
...(mapper?.metadata.keycloakToFedSyncSupported
|
||||
? [
|
||||
<DropdownItem
|
||||
key="ldapSync"
|
||||
onClick={() => {
|
||||
sync("keycloakToFed");
|
||||
}}
|
||||
>
|
||||
{t("syncKeycloakGroupsToLDAP")}
|
||||
</DropdownItem>,
|
||||
]
|
||||
: []),
|
||||
]
|
||||
}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue