Skip to content
Snippets Groups Projects

HIN-1063

Merged Alexandru Munteanu requested to merge HIN-1063 into develop
1 unresolved thread
3 files
+ 20
32
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -199,9 +199,7 @@ export const getHERecommendation = (state, collectionId, fragmentId) => {
}
const canMakeDecisionStatuses = ['submitted', 'pendingApproval']
export const canMakeDecision = (state, collection = {}, fragment = {}) => {
if (get(fragment, 'id', '') !== last(get(collection, 'fragments', [])))
return false
export const canMakeDecision = (state, collection = {}) => {
const status = get(collection, 'status', 'draft')
const isEIC = currentUserIs(state, 'adminEiC')
@@ -409,18 +407,6 @@ export const getOwnSubmittedRecommendation = (state, fragmentId) =>
)
.value()
const canMakeRecommendationStatuses = [
'heAssigned',
'underReview',
'reviewCompleted',
]
export const canMakeRecommendation = (state, collection, fragment = {}) => {
if (fragment.id !== last(get(collection, 'fragments', []))) return false
const isHE = isHEToManuscript(state, get(collection, 'id', ''))
const status = get(collection, 'status', 'draft')
return isHE && canMakeRecommendationStatuses.includes(status)
}
export const canSubmitRevision = (state, fragment = {}) => {
const userId = get(state, 'currentUser.user.id')
const fragmentAuthors = chain(fragment)