parent
e24d51edca
commit
5ee89ea15a
2 changed files with 1 additions and 9 deletions
|
@ -301,14 +301,10 @@ const GroupRow = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DataListItem
|
<DataListItem
|
||||||
className={`join-group-dialog-row-${
|
|
||||||
isRowDisabled(group) ? "disabled" : ""
|
|
||||||
}`}
|
|
||||||
aria-labelledby={group.name}
|
aria-labelledby={group.name}
|
||||||
key={group.id}
|
key={group.id}
|
||||||
id={group.id}
|
id={group.id}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
if (isRowDisabled(group)) return;
|
|
||||||
if (type === "selectOne") {
|
if (type === "selectOne") {
|
||||||
onSelect(group.id!);
|
onSelect(group.id!);
|
||||||
} else if (
|
} else if (
|
||||||
|
@ -369,7 +365,7 @@ const GroupRow = ({
|
||||||
isPlainButtonAction
|
isPlainButtonAction
|
||||||
>
|
>
|
||||||
{((hasSubgroups(group) && canBrowse) || type === "selectOne") && (
|
{((hasSubgroups(group) && canBrowse) || type === "selectOne") && (
|
||||||
<Button isDisabled variant="link" aria-label={t("common:select")}>
|
<Button variant="link" aria-label={t("common:select")}>
|
||||||
<AngleRightIcon />
|
<AngleRightIcon />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -20,10 +20,6 @@ button#kc-join-groups-button {
|
||||||
margin-right: var(--pf-global--spacer--sm);
|
margin-right: var(--pf-global--spacer--sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.join-group-dialog-row-disabled {
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.join-group-dialog-row-m-disabled {
|
.join-group-dialog-row-m-disabled {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
color: var(--pf-global--Color--200);
|
color: var(--pf-global--Color--200);
|
||||||
|
|
Loading…
Reference in a new issue