Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

Commit 99f8d6f

Browse files
authored
Merge pull request #161 from CrossRef/MM-289_Title_transfer
Mm 289 title transfer
2 parents c8496c2 + 3d09f09 commit 99f8d6f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

app/components/Publication/transferTitleModal.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ export default class TransferTitleModal extends React.Component {
119119
toPublisher: this.state.prefixSelection,
120120
email: this.state.publisherSelection.email,
121121
ownerPrefix: this.props.ownerPrefix,
122-
doi: this.props.pubDoi}).catch(e=>{
123-
this.close()
122+
doi: this.props.pubDoi}).then(()=>{
123+
this.props.reduxDeletePublication(this.props.pubDoi)}
124+
).catch(e=>{
125+
this.props.close()
124126
return errorHandler(`Error transfering title ${e.toString()}`, e)
125127
})
126-
this.props.reduxDeletePublication(this.props.pubDoi)
127128
}
128129

129130
this.props.reduxControlModal({

deployConfig.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ var presets = {
2525

2626
staging: {
2727
baseUrl: '/mmstaging/',
28-
apiBaseUrl: 'https://apps.crossref.org/mdt-staging',
28+
apiBaseUrl: 'https://apps-staging.crossref.org/mdt',
29+
babelConfig: babelDev
30+
},
31+
develop: {
32+
baseUrl: '/mmstaging/',
33+
apiBaseUrl: 'http://localhost:8080/mdt-staging',
2934
babelConfig: babelDev
3035
}
3136
}

0 commit comments

Comments
 (0)