Skip to content

Commit

Permalink
pkp/pkp-lib#10743 Use the canLogInAs and canGossip from the api for r…
Browse files Browse the repository at this point in the history
…eviewers
  • Loading branch information
jardakotesovec committed Feb 25, 2025
1 parent 1d5eda3 commit 779ea83
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/managers/ReviewerManager/useReviewerManagerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,20 @@ export function useReviewerManagerConfig() {
icon: 'History',
});

// Login as TODO condition
actions.push({
label: t('grid.action.logInAs'),
name: Actions.REVIEWER_LOGIN_AS,
icon: 'LoginAs',
});

// Gossip TODO condition
actions.push({
label: t('user.gossip'),
name: Actions.REVIEWER_EDITORIAL_NOTES,
icon: 'DefaultDocument',
});
if (reviewAssignment.canLoginAs) {
actions.push({
label: t('grid.action.logInAs'),
name: Actions.REVIEWER_LOGIN_AS,
icon: 'LoginAs',
});
}
if (reviewAssignment.canGossip) {
actions.push({
label: t('user.gossip'),
name: Actions.REVIEWER_EDITORIAL_NOTES,
icon: 'DefaultDocument',
});
}

if (!reviewAssignment.dateConfirmed) {
actions.push({
Expand Down

0 comments on commit 779ea83

Please sign in to comment.