this.loadMore() }/>
diff --git a/src/js/views/library/LibraryArtists.js b/src/js/views/library/LibraryArtists.js
index 0c4aee9c..668230d5 100755
--- a/src/js/views/library/LibraryArtists.js
+++ b/src/js/views/library/LibraryArtists.js
@@ -23,19 +23,16 @@ class LibraryArtists extends React.Component{
}
loadMore(){
- if( !this.props.spotify.library_artists || !this.props.spotify.library_artists.next ) return
- this.props.spotifyActions.getURL( this.props.spotify.library_artists.next, 'SPOTIFY_LIBRARY_ARTISTS_LOADED_MORE' );
+ if( !this.props.spotify.library_artists_more ) return
+ this.props.spotifyActions.getURL( this.props.spotify.library_artists_more, 'SPOTIFY_LIBRARY_ARTISTS_LOADED_MORE' );
}
render(){
return (
-
+
- { this.props.spotify.library_artists ? : null }
+ { this.props.spotify.library_artists ? : null }
this.loadMore() }/>
diff --git a/src/js/views/library/LibraryTracks.js b/src/js/views/library/LibraryTracks.js
index 38df1a50..58646ed2 100755
--- a/src/js/views/library/LibraryTracks.js
+++ b/src/js/views/library/LibraryTracks.js
@@ -6,6 +6,7 @@ import { Link } from 'react-router'
import TrackList from '../../components/TrackList'
import Header from '../../components/Header'
+import LazyLoadListener from '../../components/LazyLoadListener'
import * as mopidyActions from '../../services/mopidy/actions'
import * as spotifyActions from '../../services/spotify/actions'
@@ -21,13 +22,19 @@ class LibraryTracks extends React.Component{
this.props.spotifyActions.getLibraryTracks();
}
+ loadMore(){
+ if( !this.props.spotify.library_tracks_more ) return
+ this.props.spotifyActions.getURL( this.props.spotify.library_tracks_more, 'SPOTIFY_LIBRARY_TRACKS_LOADED_MORE' );
+ }
+
render(){
return (
- { this.props.spotify.library_tracks ? : null }
+ { this.props.spotify.library_tracks ? : null }
+ this.loadMore() }/>
);
}