React router #343

Merged
bones7242 merged 96 commits from react-router into master 2018-02-15 08:02:17 +01:00
Showing only changes of commit 10fdf6e6e2 - Show all commits

View file

@ -71,8 +71,8 @@ class PublishForm extends React.Component {
const response = JSON.parse(xhr.response);
console.log('publish response:', response);
if ((xhr.status === 200) && response.success) {
this.props.onPublishStatusChange(publishStates.SUCCESS, response.data.url);
this.props.history.push(`/${response.data.claimId}/${response.data.name}`);
this.props.onPublishStatusChange(publishStates.SUCCESS, response.data.url);
} else {
this.props.onPublishStatusChange(publishStates.FAILED, response.message);
}