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
Merge requests
!115
Hin 1038
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hin 1038
hin-1038
into
develop
Overview
1
Commits
15
Pipelines
0
Changes
16
Merged
Andrei Cioromila
requested to merge
hin-1038
into
develop
6 years ago
Overview
1
Commits
15
Pipelines
0
Changes
16
Expand
1
0
Merge request reports
Compare
develop
version 2
9995f79b
6 years ago
version 1
a4b8e556
6 years ago
develop (base)
and
latest version
latest version
8d580f8b
15 commits,
6 years ago
version 2
9995f79b
14 commits,
6 years ago
version 1
a4b8e556
13 commits,
6 years ago
16 files
+
799
−
891
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
packages/component-email/src/routes/emails/helpers.js
+
2
−
8
Options
@@ -4,19 +4,13 @@ const { services } = require('pubsweet-component-helper-service')
const
{
getEmailCopy
}
=
require
(
'
./emailCopy
'
)
const
confirmSignUp
=
config
.
get
(
'
confirm-signup.url
'
)
const
{
name
:
journalName
,
staffEmail
}
=
config
.
get
(
'
journal
'
)
module
.
exports
=
{
sendNewUserEmail
:
({
email
,
role
})
=>
{
email
.
content
.
subject
=
'
Confirm your account
'
let
emailType
if
(
role
===
'
Handling Editor
'
)
{
emailType
=
'
he-added-by-admin
'
email
.
fromEmail
=
`
${
journalName
}
<
${
staffEmail
}
>`
}
else
{
emailType
=
'
user-added-by-admin
'
}
const
emailType
=
role
===
'
Handling Editor
'
?
'
he-added-by-admin
'
:
'
user-added-by-admin
'
const
{
html
,
text
}
=
email
.
getNotificationBody
({
emailBodyProps
:
getEmailCopy
({