From e0045d6705d0c64b38e3cfdf8ff47fc10199c72b Mon Sep 17 00:00:00 2001
From: Alexandru Munteanu <alexandru.munt@gmail.com>
Date: Wed, 18 Apr 2018 15:13:50 +0300
Subject: [PATCH] change status when submitting manuscript

---
 .../component-wizard/src/components/WizardFormStep.js     | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/packages/component-wizard/src/components/WizardFormStep.js b/packages/component-wizard/src/components/WizardFormStep.js
index 2a9f4dd9f..b50d4d3e4 100644
--- a/packages/component-wizard/src/components/WizardFormStep.js
+++ b/packages/component-wizard/src/components/WizardFormStep.js
@@ -45,6 +45,14 @@ const submitManuscript = (
       ...values,
     }),
   )
+    .then(() =>
+      dispatch(
+        actions.updateCollection({
+          id: project.id,
+          status: 'submitted',
+        }),
+      ),
+    )
     .then(() => {
       history.push(redirectPath, { project: project.id, version: version.id })
     })
-- 
GitLab