Skip to content
Snippets Groups Projects
Commit e9afb941 authored by Anca Ursachi's avatar Anca Ursachi
Browse files

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

feat(fixEicAndAdminCantSeeEditorialDecision): Eic and Admin can now see the editorial decision after
parent df7f84c3
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 = {}) => { ...@@ -97,7 +97,12 @@ export const canHeViewEditorialComments = (state, collection = {}) => {
return isHE && canHeViewEditorialCommentsStatuses.includes(status) return isHE && canHeViewEditorialCommentsStatuses.includes(status)
} }
const canEICViewEditorialCommentsStatuses = ['rejected', 'accepted', 'inQA'] const canEICViewEditorialCommentsStatuses = [
'rejected',
'accepted',
'inQA',
'pendingApproval',
]
export const canEICViewEditorialComments = (state, collection = {}) => { export const canEICViewEditorialComments = (state, collection = {}) => {
const isEIC = currentUserIs(state, 'adminEiC') const isEIC = currentUserIs(state, 'adminEiC')
const status = get(collection, 'status', 'draft') const status = get(collection, 'status', 'draft')
......
...@@ -167,7 +167,10 @@ const ManuscriptLayout = ({ ...@@ -167,7 +167,10 @@ const ManuscriptLayout = ({
fetchingError={fetchingError} fetchingError={fetchingError}
fragment={fragment} fragment={fragment}
getSignedUrl={getSignedUrl} getSignedUrl={getSignedUrl}
highlight={reviewerReports.length === 0} highlight={
reviewerReports.length === 0 &&
get(collection, 'status', 'draft') !== 'pendingApproval'
}
invitations={invitationsWithReviewers} invitations={invitationsWithReviewers}
isFetching={isFetching.publonsFetching} isFetching={isFetching.publonsFetching}
journal={journal} 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