Skip to content

Commit

Permalink
feat: add a default notice box based on access level of the user in G…
Browse files Browse the repository at this point in the history
…roupDetails page

chore: fix lint error

chore: fix lint error
  • Loading branch information
Chisomchima committed Apr 4, 2024
1 parent aab4af0 commit 619186d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-01-19T12:15:17.744Z\n"
"PO-Revision-Date: 2024-01-19T12:15:17.744Z\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 @@ -704,6 +704,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.read && (
<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 619186d

Please sign in to comment.