Skip to content
Snippets Groups Projects
Commit ac1b95ab authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

approve for tagging bug fix

parent 8e0235d0
No related branches found
No related tags found
3 merge requests!108Dev,!107Shared data model,!106Sticky footer
...@@ -304,7 +304,10 @@ class Submit extends React.Component { ...@@ -304,7 +304,10 @@ class Submit extends React.Component {
<div> <div>
<div> <div>
{currentUser.admin && status === 'submitted' ? ( {currentUser.admin && status === 'submitted' ? (
<SubmitApprove adminButton /> <SubmitApprove
adminButton
manuscriptId={manuscript.id}
/>
) : ( ) : (
<Button <Button
disabled={sections.some(sec => sec.error)} disabled={sections.some(sec => sec.error)}
......
...@@ -46,9 +46,10 @@ const SubmitApprove = ({ ...@@ -46,9 +46,10 @@ const SubmitApprove = ({
variables.data.status = 'xml-triage' variables.data.status = 'xml-triage'
} }
await submitManuscript({ variables }) await submitManuscript({ variables })
close()
if (adminButton) { if (adminButton) {
history.push('/') history.push(`/submission/${manuscriptId}/review`)
} else {
close()
} }
} }
if (adminButton) { if (adminButton) {
......
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