Notifications for events

This commit is contained in:
James Barnsley
2016-12-14 08:29:24 +13:00
parent 2d193ca204
commit e599692c3a
6 changed files with 39 additions and 34 deletions

View File

@ -76,11 +76,7 @@ class Playlist extends React.Component{
}
reorderTracks( indexes, index ){
if( this.isEditable() ){
this.props.uiActions.reorderPlaylistTracks( this.props.playlist.uri, indexes, index, this.props.playlist.snapshot_id )
}else{
this.props.uiActions.createNotification( "You can't edit a playlist you don't own!", 'bad' )
}
this.props.uiActions.reorderPlaylistTracks( this.props.playlist.uri, indexes, index, this.props.playlist.snapshot_id )
}
removeTracks( tracks_indexes ){