Skip to content

Commit

Permalink
fix: Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Nov 11, 2024
1 parent fa2cd44 commit 89e6419
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ export const UserGroupsTable = ({ headerActions, onEdit }: IOwnProps) => {
<div ref={infoBoxRef} className="info-box-container">
<InfoBox
type="error"
message={
update.hasFailed
message={t(
deleteGroup.hasFailed
? deleteGroup.error?.message
: update.error?.message
}
)}
/>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ export const UsersTable = ({ headerActions, onEdit, onDelete }: IOwnProps) => {
<div ref={infoBoxRef} className="info-box-container">
<InfoBox
type="error"
message={
update.hasFailed
message={t(
deleteUser.hasFailed
? deleteUser.error?.message
: update.error?.message
}
)}
/>
</div>
)}
Expand Down
13 changes: 13 additions & 0 deletions src/resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,19 @@
"thecodeistoolongmax1char": {
"msg": "The ward is too long. It should three characters or less"
}
},
"groupsbrowser": {
"alreadysoftdeleted": {
"msg": "The user group is already set as deleted."
},
"thisgrouphasusersandcannotbedeleted": {
"msg": "The group you want to delete has users and cannot be deleted."
}
},
"userbrowser": {
"alreadysoftdeleted": {
"msg": "The user is already set as deleted."
}
}
},
"exam": {
Expand Down

0 comments on commit 89e6419

Please sign in to comment.