diff --git a/src/js/components/Dropzones.js b/src/js/components/Dropzones.js index c215e617..6898645c 100755 --- a/src/js/components/Dropzones.js +++ b/src/js/components/Dropzones.js @@ -49,11 +49,11 @@ class Dropzones extends React.Component{ switch( target.action ){ case 'enqueue': - this.props.mopidyActions.enqueueTracks( uris ) + this.props.mopidyActions.enqueueURIs( uris ) break case 'enqueue_next': - this.props.mopidyActions.enqueueTracksNext( uris ) + this.props.mopidyActions.enqueueURIsNext( uris ) break case 'add_to_playlist': diff --git a/src/js/views/Playlist.js b/src/js/views/Playlist.js index 6b2c0193..e55f9670 100755 --- a/src/js/views/Playlist.js +++ b/src/js/views/Playlist.js @@ -89,28 +89,41 @@ class Playlist extends React.Component{ this.props.uiActions.removeTracksFromPlaylist( this.props.playlist.uri, tracks_indexes ) } - renderExtraButtons(){ + renderActions(){ switch( helpers.uriSource( this.props.playlist.uri ) ){ case 'm3u': return ( - +
+ this.delete() } /> - +
) case 'spotify': if( this.props.playlist.can_edit ){ return ( - +
+ this.unfollow() } /> - +
) } - return + return ( +
+ + +
+ ) + default: + return ( +
+ +
+ ) } } @@ -149,10 +162,7 @@ class Playlist extends React.Component{ -
- - { this.renderExtraButtons() } -
+ { this.renderActions() }
{ this.props.playlist.tracks ? this.removeTracks(tracks_indexes) } reorderTracks={ (indexes, index) => this.reorderTracks(indexes, index) } /> : null }