Revamp context menu; Specialist touch menu
This commit is contained in:
@ -115,8 +115,11 @@ class Playlist extends React.Component{
|
||||
}
|
||||
|
||||
render(){
|
||||
if( !this.props.playlist || !this.props.playlist.name ) return null;
|
||||
var scheme = helpers.uriSource( this.props.playlist.uri );
|
||||
if( !this.props.playlist || !this.props.playlist.name ) return null
|
||||
var scheme = helpers.uriSource( this.props.playlist.uri )
|
||||
|
||||
var context = 'playlist-track'
|
||||
if (this.props.playlist.can_edit) context = 'editable-playlist-track'
|
||||
|
||||
return (
|
||||
<div className="view playlist-view">
|
||||
@ -153,7 +156,7 @@ class Playlist extends React.Component{
|
||||
</div>
|
||||
|
||||
<section className="list-wrapper">
|
||||
{ this.props.playlist.tracks ? <TrackList context={ this.props.playlist.can_edit ? 'editable-playlist-track' : 'playlist-track'} tracks={ this.props.playlist.tracks } removeTracks={ tracks_indexes => this.removeTracks(tracks_indexes) } reorderTracks={ (indexes, index) => this.reorderTracks(indexes, index) } /> : null }
|
||||
{ this.props.playlist.tracks ? <TrackList tracklist_uri={this.props.params.uri} context={context} tracks={this.props.playlist.tracks} removeTracks={ tracks_indexes => this.removeTracks(tracks_indexes) } reorderTracks={ (indexes, index) => this.reorderTracks(indexes, index) } /> : null }
|
||||
<LazyLoadListener enabled={this.props.playlist.tracks_more} loadMore={ () => this.loadMore() }/>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user