From bb675ba13d16b11d3027fe01faadfd5589d0b31a Mon Sep 17 00:00:00 2001 From: Crossref Date: Wed, 12 Sep 2018 09:35:19 -0400 Subject: [PATCH 1/2] update staging midware location also add a development deploy config --- deployConfig.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deployConfig.js b/deployConfig.js index bc386ac..a87abe8 100644 --- a/deployConfig.js +++ b/deployConfig.js @@ -25,7 +25,12 @@ var presets = { staging: { baseUrl: '/mmstaging/', - apiBaseUrl: 'https://apps.crossref.org/mdt-staging', + apiBaseUrl: 'https://apps-staging.crossref.org/mdt', + babelConfig: babelDev + }, + develop: { + baseUrl: '/mmstaging/', + apiBaseUrl: 'http://localhost:8080/mdt-staging', babelConfig: babelDev } } From 3d09f09c1d581a7c4dc0300b5f293b6e070eba4f Mon Sep 17 00:00:00 2001 From: Crossref Date: Wed, 19 Sep 2018 09:23:19 -0400 Subject: [PATCH 2/2] mm-322 don't delete until transferred Since title transfer now may result in a deposit of a publication, the draft work of that publication must not be deleted before the deposit is attempted within the transfer --- app/components/Publication/transferTitleModal.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/components/Publication/transferTitleModal.js b/app/components/Publication/transferTitleModal.js index 21d798f..2ee6969 100644 --- a/app/components/Publication/transferTitleModal.js +++ b/app/components/Publication/transferTitleModal.js @@ -119,11 +119,12 @@ export default class TransferTitleModal extends React.Component { toPublisher: this.state.prefixSelection, email: this.state.publisherSelection.email, ownerPrefix: this.props.ownerPrefix, - doi: this.props.pubDoi}).catch(e=>{ - this.close() + doi: this.props.pubDoi}).then(()=>{ + this.props.reduxDeletePublication(this.props.pubDoi)} + ).catch(e=>{ + this.props.close() return errorHandler(`Error transfering title ${e.toString()}`, e) }) - this.props.reduxDeletePublication(this.props.pubDoi) } this.props.reduxControlModal({