From 26a214345399db2f738b41a4a94dd2f8c259a55a Mon Sep 17 00:00:00 2001 From: Daniel Sandu <daniel.sandu@thinslices.com> Date: Thu, 25 Oct 2018 14:09:48 +0300 Subject: [PATCH] fix(ManuscriptLayout): Apply Visual Design - Author can see Reviewer Reports - design issues --- .../src/contextualBoxes/AuthorReviews.js | 3 ++- .../src/components/ManuscriptLayout.js | 17 +++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js b/packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js index 1bd5ca285..105b76fc0 100644 --- a/packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js +++ b/packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js @@ -18,7 +18,8 @@ const SubmittedReportsNumberForAuthorReviews = ({ reports }) => ( const AuthorReviews = ({ invitations, journal, reports, fragment }) => reports.length > 0 && ( <ContextualBox - label="Review Reports" + label="Reviewer Reports" + mb={2} rightChildren={ <SubmittedReportsNumberForAuthorReviews reports={reports.length} /> } diff --git a/packages/component-manuscript/src/components/ManuscriptLayout.js b/packages/component-manuscript/src/components/ManuscriptLayout.js index 3e5b1c7ad..ab97d2960 100644 --- a/packages/component-manuscript/src/components/ManuscriptLayout.js +++ b/packages/component-manuscript/src/components/ManuscriptLayout.js @@ -109,8 +109,12 @@ const ManuscriptLayout = ({ /> )} - {get(currentUser, 'permissions.canSubmitRevision', false) && ( - <SubmitRevision {...submitRevision} /> + {get(currentUser, 'permissions.authorCanViewReportsDetails', false) && ( + <AuthorReviews + currentUser={currentUser} + journal={journal} + reports={reviewerReports} + /> )} {submittedOwnRecommendation && ( @@ -191,12 +195,9 @@ const ManuscriptLayout = ({ {...inviteReviewer} /> )} - {get(currentUser, 'permissions.authorCanViewReportsDetails', false) && ( - <AuthorReviews - currentUser={currentUser} - journal={journal} - reports={reviewerReports} - /> + + {get(currentUser, 'permissions.canSubmitRevision', false) && ( + <SubmitRevision {...submitRevision} /> )} {get(currentUser, 'permissions.canMakeHERecommendation', false) && -- GitLab