Tracks and Queue overhaul

This commit is contained in:
James Barnsley
2017-11-10 15:56:01 +13:00
parent e2dbbac98b
commit 93cbbaa7fa
15 changed files with 256 additions and 281 deletions

View File

@ -78,7 +78,14 @@ class Artist extends React.Component{
}
loadMore(){
this.props.spotifyActions.getURL(this.props.artist.albums_more, 'SPOTIFY_ARTIST_ALBUMS_LOADED', this.props.params.uri );
this.props.spotifyActions.loadMore(
this.props.artist.albums_more,
{
parent_type: 'artist',
parent_key: this.props.params.uri,
records_type: 'album'
}
);
}
inLibrary(){
@ -190,7 +197,7 @@ class Artist extends React.Component{
<h4>Albums</h4>
<section className="grid-wrapper no-top-padding">
<AlbumGrid albums={albums} />
<LazyLoadListener loading={this.props.artist.albums_more} loadMore={ () => this.loadMore() }/>
<LazyLoadListener loading={this.props.artist.albums_more} loadMore={() => this.loadMore()} />
</section>
</div>
)