-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Role Audience of Assigned Roles of the Group #4688
Conversation
@@ -31,17 +30,21 @@ interface RenderChipInterface extends IdentifiableComponentInterface, ChipProps | |||
*/ | |||
setActiveOption: (option: RolesMemberInterface) => void; | |||
/** | |||
* Primary text of the chip. | |||
* Display name of the role |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are updating the component properties specifically for displaying role information, let's also rename RenderChip
and related interface names as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 8cb8bf2
} = props; | ||
|
||
const [ popoverAnchorEl, setPopoverAnchorEl ] = useState<Element>(null); | ||
const [ , setPopoverAnchorEl ] = useState<Element>(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we remove this as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 8cb8bf2
Can you add a screenshot on how it will display when assigned multiple org roles. |
@@ -118,7 +118,10 @@ export const EditGroupRoles: FunctionComponent<EditGroupRolesPropsInterface> = ( | |||
<RenderChip | |||
{ ...getTagProps({ index }) } | |||
key={ index } | |||
primaryText={ option.display } | |||
primaryText={ "" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove primaryText
prop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 8cb8bf2
} = props; | ||
|
||
const [ popoverAnchorEl, setPopoverAnchorEl ] = useState<Element>(null); | ||
const [ , setPopoverAnchorEl ] = useState<Element>(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -19,7 +19,6 @@ | |||
import Chip, { ChipProps } from "@oxygen-ui/react/Chip"; | |||
import { IdentifiableComponentInterface, RolesMemberInterface } from "@wso2is/core/models"; | |||
import React, { FunctionComponent, ReactElement, SyntheticEvent, useState } from "react"; | |||
import { ChipMoreDetails } from "./chip-more-details"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove chip-more-details
file as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 8cb8bf2
Purpose
Related Issues
Related PRs
Revised UI
Checklist
Security checks