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

Commit

Permalink
Merge pull request #161 from CrossRef/MM-289_Title_transfer
Browse files Browse the repository at this point in the history
Mm 289 title transfer
  • Loading branch information
MikeYalter authored Sep 19, 2018
2 parents c8496c2 + 3d09f09 commit 99f8d6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions app/components/Publication/transferTitleModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
7 changes: 6 additions & 1 deletion deployConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 99f8d6f

Please sign in to comment.