Renaming album/artist fetchers

This commit is contained in:
James Barnsley
2017-01-26 09:15:54 +13:00
parent 095206f664
commit 759f4ef37f
5 changed files with 9 additions and 9 deletions

View File

@ -186,9 +186,9 @@ export function getArtist( uri ){
}
}
export function getArtists(){
export function getLibraryArtists(){
return {
type: 'MOPIDY_GET_ARTISTS'
type: 'MOPIDY_GET_LIBRARY_ARTISTS'
}
}
@ -206,9 +206,9 @@ export function getAlbums( uris ){
}
}
export function getLocalAlbums(){
export function getLibraryAlbums(){
return {
type: 'MOPIDY_GET_LOCAL_ALBUMS'
type: 'MOPIDY_GET_LIBRARY_ALBUMS'
}
}

View File

@ -544,7 +544,7 @@ const MopidyMiddleware = (function(){
* ======================================================================================
**/
case 'MOPIDY_GET_LOCAL_ALBUMS':
case 'MOPIDY_GET_LIBRARY_ALBUMS':
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=album' } )
.then( response => {
@ -658,7 +658,7 @@ const MopidyMiddleware = (function(){
* ======================================================================================
**/
case 'MOPIDY_GET_ARTISTS':
case 'MOPIDY_GET_LIBRARY_ARTISTS':
store.dispatch({ type: 'LOCAL_ARTISTS_LOADED', data: false });
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=artist' } )
.then( response => {