Skip to content
Snippets Groups Projects
Commit 61a4e5fa authored by Sinzeanu Demetriad's avatar Sinzeanu Demetriad
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into HIN-1031

parents 331e8ec6 00ee8978
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!74fix(AppBar/Logo): Hovering over the hindawi logo should change the cursor to a pointer
<table class="module" role="module" data-type="text" border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td style="padding:30px 23px 0px 23px;background-color:#ffffff;" height="100%" valign="top" bgcolor="#ffffff">
<p data-pm-slice="1 1 []">
<a href="{{ detailsLink }}">See more information</a>
</p>
<p data-pm-slice="1 1 []">&nbsp;</p>
{{#unless resend }}
......
......@@ -4,6 +4,7 @@ const Email = require('@pubsweet/component-email-templating')
const unsubscribeSlug = config.get('unsubscribe.url')
const inviteReviewerPath = config.get('invite-reviewer.url')
const { staffEmail, name: journalName } = config.get('journal')
const { services, Fragment } = require('pubsweet-component-helper-service')
......@@ -68,8 +69,10 @@ module.exports = {
author => `${author.firstName} ${author.lastName}`,
)
const handlingEditor = get(collection, 'handlingEditor', {})
const email = new Email({
type: 'user',
fromEmail: `${handlingEditor.name} <${staffEmail}>`,
toUser: {
email: invitedUser.email,
name: `${invitedUser.lastName}`,
......@@ -79,10 +82,11 @@ module.exports = {
abstract,
agreeLink,
declineLink,
signatureJournal: journalName,
signatureName: handlingEditor.name,
authorsList: authorsList.join(', '),
subject: `${subjectBaseText} invitation`,
detailsLink: services.createUrl(baseUrl, detailsPath),
signatureName: get(collection, 'handlingEditor.name', 'Hindawi'),
unsubscribeLink: services.createUrl(baseUrl, unsubscribeSlug, {
id: invitedUser.id,
token: invitedUser.accessTokens.unsubscribe,
......
......@@ -3,7 +3,7 @@ const { get } = require('lodash')
const Email = require('@pubsweet/component-email-templating')
const unsubscribeSlug = config.get('unsubscribe.url')
const fromEmail = config.get('journal.staffEmail')
const staffEmail = config.get('journal.staffEmail')
const journalName = config.get('journal.name')
const {
......@@ -41,7 +41,7 @@ module.exports = {
const eicName = await userHelper.getEiCName()
const email = new Email({
fromEmail,
fromEmail: `${handlingEditor.name} <${staffEmail}>`,
type: 'user',
content: {
ctaText: 'MANUSCRIPT DETAILS',
......@@ -67,6 +67,7 @@ module.exports = {
if (['reviewer-accepted', 'reviewer-declined'].includes(emailType)) {
const heUser = await UserModel.find(handlingEditor.id)
email.fromEmail = `${eicName} <${staffEmail}>`
sendHandlingEditorEmail({
email,
eicName,
......
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