Merging local and spotify library

This commit is contained in:
James Barnsley
2017-08-07 20:44:59 +12:00
parent a97854284f
commit 97ba83a06d
3 changed files with 52 additions and 17 deletions

View File

@ -206,9 +206,9 @@ export default function reducer(core = {}, action){
return Object.assign({}, core, {
library_albums: helpers.removeDuplicates([...library_albums, ...action.uris]),
library_albums_more: action.more,
library_albums_total: action.total,
library_albums_started: true
library_albums_spotify_more: (action.spotify_more ? action.spotify_more : null),
library_albums_total: (action.total ? action.total : null),
library_albums_spotify_started: (action.spotify_started ? action.spotify_started : null),
});
case 'ALBUM_LIBRARY_CHECK':

View File

@ -848,7 +848,7 @@ const MopidyMiddleware = (function(){
});
store.dispatch({
type: 'LOCAL_ALBUMS_LOADED',
type: 'LIBRARY_ALBUMS_LOADED',
uris: uris
});
})