diff --git a/packages/component-manuscript-manager/src/routes/technicalChecks/patch.js b/packages/component-manuscript-manager/src/routes/technicalChecks/patch.js index 45104fada805c98600114402490845f7a971ebef..934709a746946699d07062c71084b3013f4fff13 100644 --- a/packages/component-manuscript-manager/src/routes/technicalChecks/patch.js +++ b/packages/component-manuscript-manager/src/routes/technicalChecks/patch.js @@ -40,12 +40,14 @@ module.exports = ({ Collection, Fragment, User }) => async (req, res) => { collection.status = setNewStatus(step, agree) await collection.save() - sendNotifications({ - User, - Fragment, - collection, - baseUrl: services.getBaseUrl(req), - }) + if (agree) { + sendNotifications({ + User, + Fragment, + collection, + baseUrl: services.getBaseUrl(req), + }) + } return res.status(200).json(collection) } catch (e) { diff --git a/packages/components-faraday/src/components/UIComponents/EQSDecisionPage.js b/packages/components-faraday/src/components/UIComponents/EQSDecisionPage.js index 3217266f7a46152387438f73d58b9852ee7e44b5..6aaa02bb30d2245e08ac88c503cbc111651d7c63 100644 --- a/packages/components-faraday/src/components/UIComponents/EQSDecisionPage.js +++ b/packages/components-faraday/src/components/UIComponents/EQSDecisionPage.js @@ -98,7 +98,9 @@ export default compose( }) .then(() => { setSuccess( - 'Manuscript accepted. Thank you for your technical check!', + `Manuscript ${ + decision ? 'accepted' : 'rejected' + }. Thank you for your technical check!`, ) hideModal() }) diff --git a/packages/xpub-faraday/app/index-production.html b/packages/xpub-faraday/app/index-production.html index c4113cccda13c34cb919c145ec37c1af99334208..9408ded17046ffed4fe706313dff0f9ba3ab07d5 100644 --- a/packages/xpub-faraday/app/index-production.html +++ b/packages/xpub-faraday/app/index-production.html @@ -1,10 +1,18 @@ <!DOCTYPE html> <html> + <head> + <!-- + Build time: <%= htmlWebpackPlugin.options.buildTime %> + --> <meta charset=utf-8> - <title><%= htmlWebpackPlugin.options.title %></title> + <title> + <%= htmlWebpackPlugin.options.title %> + </title> </head> + <body> -<div id="root"></div> + <div id="root"></div> </body> -</html> + +</html> \ No newline at end of file diff --git a/packages/xpub-faraday/config/default.js b/packages/xpub-faraday/config/default.js index 3d84183a8d9058de2dbe526e60130994f552e548..0e8568e0dc11ee83148a032d079c88617345c49a 100644 --- a/packages/xpub-faraday/config/default.js +++ b/packages/xpub-faraday/config/default.js @@ -46,7 +46,7 @@ module.exports = { API_ENDPOINT: '/api', baseUrl: process.env.CLIENT_BASE_URL || 'http://localhost:3000', 'login-redirect': '/', - 'redux-log': true, + 'redux-log': process.env.NODE_ENV === 'development', theme: process.env.PUBSWEET_THEME, }, orcid: { @@ -114,13 +114,7 @@ module.exports = { path: `${__dirname}/mailer`, editorialAssistant: 'hindawi@thinslices.com', }, - publicKeys: [ - 'pubsweet-client', - 'authsome', - 'validations', - 'pubsweet-component-aws-s3', - 'pubsweet-component-aws-ses', - ], + publicKeys: ['pubsweet-client', 'authsome', 'validations'], statuses: { draft: { importance: 1, diff --git a/packages/xpub-faraday/webpack/webpack.production.config.js b/packages/xpub-faraday/webpack/webpack.production.config.js index be12bca47a761e227c62f1605a6043df99b6c585..60437cd2dc41e3dd5266ac592e484366fc42cf6c 100644 --- a/packages/xpub-faraday/webpack/webpack.production.config.js +++ b/packages/xpub-faraday/webpack/webpack.production.config.js @@ -36,7 +36,8 @@ module.exports = [ root: path.join(__dirname, '..', '_build'), }), new HtmlWebpackPlugin({ - title: 'xpub', + title: 'Faraday', + buildTime: new Date().toString(), template: '../app/index-production.html', inject: 'body', }),