|
|
@ -33,31 +33,21 @@ export const LdapUserGroups: FC<Props> = ({ groups, showAttributeMapping }) => { |
|
|
|
{items.map((group, index) => { |
|
|
|
{items.map((group, index) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<tr key={`${group.orgId}-${index}`}> |
|
|
|
<tr key={`${group.orgId}-${index}`}> |
|
|
|
{showAttributeMapping && ( |
|
|
|
{showAttributeMapping && <td>{group.groupDN}</td>} |
|
|
|
<> |
|
|
|
{group.orgName && group.orgRole ? <td>{group.orgName}</td> : <td />} |
|
|
|
<td>{group.groupDN}</td> |
|
|
|
{group.orgRole ? ( |
|
|
|
{!group.orgRole && ( |
|
|
|
<td>{group.orgRole}</td> |
|
|
|
<> |
|
|
|
) : ( |
|
|
|
<td /> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<span className="text-warning"> |
|
|
|
<span className="text-warning"> |
|
|
|
No match |
|
|
|
No match |
|
|
|
<Tooltip placement="top" content="No matching groups found" theme={'info'}> |
|
|
|
<Tooltip placement="top" content="No matching groups found" theme={'info'}> |
|
|
|
<span className="gf-form-help-icon"> |
|
|
|
<span className="gf-form-help-icon"> |
|
|
|
<Icon name="info-circle" /> |
|
|
|
<Icon name="info-circle" /> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</Tooltip> |
|
|
|
</Tooltip> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
{group.orgName && ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
<td>{group.orgName}</td> |
|
|
|
|
|
|
|
<td>{group.orgRole}</td> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
)} |
|
|
|
)} |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
); |
|
|
|
); |
|
|
|