Renaming album/artist fetchers
This commit is contained in:
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user