Skip to content

Commit

Permalink
CM-295: display group head
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Oct 2, 2023
1 parent 6712ab6 commit 7369ca5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const GROUP_INDIVIDUAL_FULL_PROJECTION = [
const GROUP_FULL_PROJECTION = [
'id',
'isDeleted',
'head {firstName, lastName}',
'dateCreated',
'dateUpdated',
'jsonExt',
Expand Down
2 changes: 2 additions & 0 deletions src/components/GroupSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function GroupSearcher({
const headers = () => {
const headers = [
'group.id',
'group.head',
];
if (rights.includes(RIGHT_GROUP_UPDATE)) {
headers.push('emptyLabel');
Expand All @@ -120,6 +121,7 @@ function GroupSearcher({
const itemFormatters = () => {
const formatters = [
(group) => group.id,
(group) => group?.head? `${group?.head?.firstName} ${group?.head?.lastName}` : formatMessage(intl, 'group', 'noHeadSpecified'),

Check failure on line 124 in src/components/GroupSearcher.js

View workflow job for this annotation

GitHub Actions / lint

This line has a length of 133. Maximum allowed is 120

Check failure on line 124 in src/components/GroupSearcher.js

View workflow job for this annotation

GitHub Actions / lint

Arrow function used ambiguously with a conditional expression

Check failure on line 124 in src/components/GroupSearcher.js

View workflow job for this annotation

GitHub Actions / lint

Operator '?' must be spaced
];
if (rights.includes(RIGHT_GROUP_UPDATE)) {
formatters.push((group) => (
Expand Down
2 changes: 2 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
},
"group": {
"id": "ID",
"head": "Head",
"noHeadSpecified": "head not specified",
"individual.firstName": "Individual First Name",
"individual.lastName": "Individual Last Name",
"pageTitle": "Group {id}",
Expand Down

0 comments on commit 7369ca5

Please sign in to comment.