-
Notifications
You must be signed in to change notification settings - Fork 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
feat: add a default notice box based on access level of the user #1364
Conversation
🚀 Deployed on https://pr-1364--dhis2-user.netlify.app |
…roupDetails page chore: fix lint error chore: fix lint error
4389ae3
to
619186d
Compare
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.
@Chisomchima: notice box looks great 🎉, but I think you need to refine the logic slightly (see comment)
@@ -34,6 +34,12 @@ const GroupDetails = ({ groupId }) => { | |||
|
|||
return ( | |||
<Details title={group.displayName}> | |||
{group.access.read && ( |
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.
Hi @Chisomchima. I think you need to display this when !group?.access?.write
.
At the moment, because you display the message whenever a user has read
access, the user will see this message if they have both read
and write
access to the group, e.g.:
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 🚀
🎉 This PR is included in version 100.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
feat: add a default notice box based on access level of the user
feat: add a default notice box based on access level of the user
Implements DHIS2-17083
Description
conditionally display update status in user group details page based on access levels
Known issues
Checklist
All points above should be relevant for feature PRs. For bugfixes, some points might not be relevant. In that case, just check them anyway to signal the work is done.
Screenshots