Skip to content
Snippets Groups Projects
Commit ca202cbc authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'HIN-1058' into 'develop'

feat(fixEicAndAdminCantSeeEditorialDecision): Eic and Admin can now see the…

See merge request !98
parents df7f84c3 e9afb941
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!98feat(fixEicAndAdminCantSeeEditorialDecision): Eic and Admin can now see the…
......@@ -97,7 +97,12 @@ export const canHeViewEditorialComments = (state, collection = {}) => {
return isHE && canHeViewEditorialCommentsStatuses.includes(status)
}
const canEICViewEditorialCommentsStatuses = ['rejected', 'accepted', 'inQA']
const canEICViewEditorialCommentsStatuses = [
'rejected',
'accepted',
'inQA',
'pendingApproval',
]
export const canEICViewEditorialComments = (state, collection = {}) => {
const isEIC = currentUserIs(state, 'adminEiC')
const status = get(collection, 'status', 'draft')
......
......@@ -167,7 +167,10 @@ const ManuscriptLayout = ({
fetchingError={fetchingError}
fragment={fragment}
getSignedUrl={getSignedUrl}
highlight={reviewerReports.length === 0}
highlight={
reviewerReports.length === 0 &&
get(collection, 'status', 'draft') !== 'pendingApproval'
}
invitations={invitationsWithReviewers}
isFetching={isFetching.publonsFetching}
journal={journal}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment