Lazy-loading local albums - allows us to fetch full data without killing server

This commit is contained in:
James Barnsley
2017-01-26 08:51:35 +13:00
parent 57c8a75df1
commit 0d6a53948c
3 changed files with 60 additions and 26 deletions

View File

@ -199,9 +199,16 @@ export function getAlbum( uri ){
}
}
export function getAlbums(){
export function getAlbums( uris ){
return {
type: 'MOPIDY_GET_ALBUMS'
type: 'MOPIDY_GET_ALBUMS',
uris: uris
}
}
export function getLocalAlbums(){
return {
type: 'MOPIDY_GET_LOCAL_ALBUMS'
}
}