Skip to content

Commit

Permalink
Merge pull request #1376 from dhis2/DHIS2-17083/update-user-group-v39
Browse files Browse the repository at this point in the history
feat: add a default notice box based on access level of the user
  • Loading branch information
Chisomchima authored May 8, 2024
2 parents 9cb5650 + d3e075f commit 40e69e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-01-17T09:36:40.909Z\n"
"PO-Revision-Date: 2024-01-17T09:36:40.909Z\n"
"POT-Creation-Date: 2024-03-27T09:03:25.496Z\n"
"PO-Revision-Date: 2024-03-27T09:03:25.496Z\n"

msgid "Yes"
msgstr "Yes"
Expand Down Expand Up @@ -710,6 +712,9 @@ msgstr "There was an error fetching this user."
msgid "Edit user"
msgstr "Edit user"

msgid "You do not have access to edit this user group"
msgstr "You do not have access to edit this user group"

msgid "Overview"
msgstr "Overview"

Expand Down
6 changes: 6 additions & 0 deletions src/pages/GroupDetails/GroupDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ const GroupDetails = ({ groupId }) => {

return (
<Details title={group.displayName}>
{!group?.access?.write && (
<NoticeBox warn>
{i18n.t('You do not have access to edit this user group')}
</NoticeBox>
)}
<br />
<Section
title={i18n.t('Overview')}
action={
Expand Down

0 comments on commit 40e69e6

Please sign in to comment.