Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
4250cd1b
Commit
4250cd1b
authored
6 years ago
by
Bogdan Cochior
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
https://gitlab.coko.foundation/xpub/xpub-faraday
into develop
parents
0966ed70
6c40d7da
No related branches found
No related tags found
1 merge request
!34
Sprint 17 features
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/notifications/notifications.js
+19
-13
19 additions, 13 deletions
...s/fragmentsRecommendations/notifications/notifications.js
with
19 additions
and
13 deletions
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/notifications/notifications.js
+
19
−
13
View file @
4250cd1b
const
config
=
require
(
'
config
'
)
const
{
chain
,
get
}
=
require
(
'
lodash
'
)
const
{
chain
,
get
,
isEmpty
}
=
require
(
'
lodash
'
)
const
{
User
,
...
...
@@ -58,9 +58,13 @@ module.exports = {
comments
=
eicComments
}
const
hasPeerReview
=
(
collection
=
{})
=>
!
isEmpty
(
collection
.
handlingEditor
)
if
(
(
isEditorInChief
||
newRecommendation
.
recommendationType
===
'
review
'
)
&&
collection
.
status
!==
'
rejected
'
hasPeerReview
(
collection
)
)
{
// the request came from either the Editor in Chief or a reviewer, so the HE needs to be notified
sendHandlingEditorEmail
({
...
...
@@ -81,17 +85,19 @@ module.exports = {
newRecommendation
.
recommendationType
!==
'
review
'
&&
newRecommendation
.
recommendation
!==
'
return-to-handling-editor
'
)
{
sendAuthorsEmail
({
email
,
baseUrl
,
titleText
,
parsedFragment
,
fragmentAuthors
,
isEditorInChief
,
subjectBaseText
,
newRecommendation
,
})
if
(
collection
.
status
!==
'
rejected
'
)
{
if
(
isEditorInChief
||
collection
.
status
===
'
revisionRequested
'
)
{
sendAuthorsEmail
({
email
,
baseUrl
,
titleText
,
parsedFragment
,
fragmentAuthors
,
isEditorInChief
,
subjectBaseText
,
newRecommendation
,
})
}
if
(
hasPeerReview
(
collection
))
{
sendReviewersEmail
({
email
,
baseUrl
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment