Skip to content
Snippets Groups Projects
Commit 30ed2792 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'HIN-1075' into 'develop'

fix(ManuscriptLayout): Apply Visual Design - Author can see Reviewer Reports - design issues

See merge request !123
parents 05f35691 26a21434
No related branches found
No related tags found
1 merge request!123fix(ManuscriptLayout): Apply Visual Design - Author can see Reviewer Reports - design issues
...@@ -18,7 +18,8 @@ const SubmittedReportsNumberForAuthorReviews = ({ reports }) => ( ...@@ -18,7 +18,8 @@ const SubmittedReportsNumberForAuthorReviews = ({ reports }) => (
const AuthorReviews = ({ invitations, journal, reports, fragment }) => const AuthorReviews = ({ invitations, journal, reports, fragment }) =>
reports.length > 0 && ( reports.length > 0 && (
<ContextualBox <ContextualBox
label="Review Reports" label="Reviewer Reports"
mb={2}
rightChildren={ rightChildren={
<SubmittedReportsNumberForAuthorReviews reports={reports.length} /> <SubmittedReportsNumberForAuthorReviews reports={reports.length} />
} }
......
...@@ -109,8 +109,12 @@ const ManuscriptLayout = ({ ...@@ -109,8 +109,12 @@ const ManuscriptLayout = ({
/> />
)} )}
{get(currentUser, 'permissions.canSubmitRevision', false) && ( {get(currentUser, 'permissions.authorCanViewReportsDetails', false) && (
<SubmitRevision {...submitRevision} /> <AuthorReviews
currentUser={currentUser}
journal={journal}
reports={reviewerReports}
/>
)} )}
{submittedOwnRecommendation && ( {submittedOwnRecommendation && (
...@@ -191,12 +195,9 @@ const ManuscriptLayout = ({ ...@@ -191,12 +195,9 @@ const ManuscriptLayout = ({
{...inviteReviewer} {...inviteReviewer}
/> />
)} )}
{get(currentUser, 'permissions.authorCanViewReportsDetails', false) && (
<AuthorReviews {get(currentUser, 'permissions.canSubmitRevision', false) && (
currentUser={currentUser} <SubmitRevision {...submitRevision} />
journal={journal}
reports={reviewerReports}
/>
)} )}
{get(currentUser, 'permissions.canMakeHERecommendation', false) && {get(currentUser, 'permissions.canMakeHERecommendation', false) &&
......
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