Remaining modals; Error boundaries; Notification styles

This commit is contained in:
James Barnsley
2018-07-21 11:43:40 +12:00
parent 5f8956b376
commit 3af47a7903
17 changed files with 23207 additions and 25074 deletions

View File

@ -73,8 +73,15 @@ class EditPlaylist extends React.Component{
this.setState({error: 'Name is required'})
return false
} else {
this.props.coreActions.savePlaylist(this.props.params.uri, this.state.name, this.state.description, this.state.public, this.state.collaborative, this.state.image);
this.props.uiActions.closeModal();
this.props.coreActions.savePlaylist(
this.props.params.uri,
this.state.name,
this.state.description,
this.state.public,
this.state.collaborative,
this.state.image
);
window.history.back();
return false;
}
}