-
Notifications
You must be signed in to change notification settings - Fork 0
ACM-20531, ACM-20534, ACM-20718 - Create UI for RBAC for VMs - View, Edit and Create functionality #9
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
Conversation
…Edit and Create functionality Signed-off-by: Oksana Bazylieva <obazylie@redhat.com>
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.
lgtm
</DescriptionListGroup> | ||
) | ||
} | ||
case 'Radio':{ |
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.
Is it possible to refactor to not have this duplicate code in lines 920-937 and 1268-1286?
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.
Looks good!
}, [accessControl?.metadata]) | ||
|
||
useEffect(() => { | ||
if (!isEditing && !isViewing && selectedUsers.length === 0) { |
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.
> !selectedUsers.length ? 'true' : 'false'
'true'
> selectedUsers.length === 0 ? 'true' : 'false'
'true'
so 🤔
if (!isEditing && !isViewing && !selectedUsers.length) {
const renderLabelGroup = () => { | ||
return ( | ||
<LabelGroup isVertical numLabels={labels.length} expandedText={expandedText} collapsedText={collapsedText}> | ||
<LabelGroup isVertical={props.isVertical ?? true} numLabels={labels.length} expandedText={expandedText} collapsedText={collapsedText}> |
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.
right? 🤔
isVertical={props.isVertical}
📝 Summary
Ticket Summary (Title):
Create View, Edit and Create pages to support the RBAC for VMs functionality
Ticket Link:
https://issues.redhat.com/browse/ACM-20531
https://issues.redhat.com/browse/ACM-20534
https://issues.redhat.com/browse/ACM-20718
Type of Change:
✅ Checklist
General
ACM-12340 Fix bug with...
)If Feature
If Bugfix
🗒️ Notes for Reviewers