diff --git a/packages/component-wizard/src/components/WizardFormStep.js b/packages/component-wizard/src/components/WizardFormStep.js index 3d966e269a6c84f0ae329530240a87600862abe0..4516f00416eece07d96b45b503ae5c84bc46a4f0 100644 --- a/packages/component-wizard/src/components/WizardFormStep.js +++ b/packages/component-wizard/src/components/WizardFormStep.js @@ -74,7 +74,7 @@ const onSubmit = ( project, version, confirmation, - wizard: { confirmationModal, submissionRedirect }, + wizard: { confirmationModal, submissionRedirect, formSectionKeys }, toggleConfirmation, ...rest }, @@ -84,8 +84,9 @@ const onSubmit = ( } else if (confirmationModal && !confirmation) { toggleConfirmation() } else { + const newValues = pick(values, formSectionKeys) submitManuscript( - values, + newValues, dispatch, project, version, diff --git a/packages/component-wizard/src/components/WizardStep.local.scss b/packages/component-wizard/src/components/WizardStep.local.scss index 7a2d35a44c4f9ad2e187929748dc4382692644ac..8918f2a9853afac723a5d68b6a5e0e8bc22190ca 100644 --- a/packages/component-wizard/src/components/WizardStep.local.scss +++ b/packages/component-wizard/src/components/WizardStep.local.scss @@ -41,4 +41,4 @@ position: fixed; right: 0; top: 0; -} \ No newline at end of file +} diff --git a/packages/xpub-faraday/app/config/journal/submit-wizard.js b/packages/xpub-faraday/app/config/journal/submit-wizard.js index 8a75432e4d84902eb7cf61f216e0194c5a2e693f..93a6a50741f376d8ebdc96365b68764f83a16d73 100644 --- a/packages/xpub-faraday/app/config/journal/submit-wizard.js +++ b/packages/xpub-faraday/app/config/journal/submit-wizard.js @@ -49,6 +49,7 @@ const uploadFile = input => uploadFileFn(input) export default { showProgress: true, formSectionKeys: ['metadata', 'declarations', 'conflicts', 'notes', 'files'], + submissionRedirect: '/confirmation-page', dispatchFunctions: [uploadFile], steps: [ { diff --git a/packages/xpub-faraday/app/routes.js b/packages/xpub-faraday/app/routes.js index 0faa342e6fd6458e78f2a08d27cc5da1ab52da68..bc297cdbfffcd7fdc6a6416dfd391f4ff6af6ced 100644 --- a/packages/xpub-faraday/app/routes.js +++ b/packages/xpub-faraday/app/routes.js @@ -15,11 +15,18 @@ import { import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/DashboardPage' import WizardPage from 'pubsweet-component-wizard/src/components/WizardPage' +const ConfirmationPage = () => <h1>Confirmation page</h1> + const Routes = () => ( <App> <Route component={LoginPage} exact path="/login" /> <Route component={SignupPage} exact path="/signup" /> <PrivateRoute component={DashboardPage} exact path="/" /> + <PrivateRoute + component={ConfirmationPage} + exact + path="/confirmation-page" + /> <PrivateRoute component={LogoutPage} exact path="/logout" /> <PrivateRoute component={WizardPage}