Playing album; PLAY_URIS is closer to what it actually does

This commit is contained in:
James Barnsley
2016-11-18 08:29:13 +13:00
parent b72eabcbbc
commit 1ffa5b62c6
8 changed files with 65 additions and 15 deletions

View File

@ -52,7 +52,7 @@ class ContextMenu extends React.Component{
for( var i = 0; i < selected_tracks.length; i++ ){
selected_tracks_uris.push( selected_tracks[i].uri );
}
this.props.mopidyActions.playTracks(selected_tracks_uris);
this.props.mopidyActions.playURIs(selected_tracks_uris);
this.props.uiActions.hideContextMenu();
}

View File

@ -165,7 +165,7 @@ class TrackList extends React.Component{
// if we've got a specific action, run it
if( typeof(this.props.playTracks) !== 'undefined' ){
return this.props.playTracks( tracks );
return this.props.playURIs( tracks );
}
// default to playing a bunch of uris
@ -173,7 +173,7 @@ class TrackList extends React.Component{
for( var i = 0; i < tracks.length; i++ ){
uris.push( tracks[i].uri )
}
return this.props.mopidyActions.playTracks( uris )
return this.props.mopidyActions.playURIs( uris )
}
removeTracks(){