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

@ -8,7 +8,7 @@ from frontend import IrisFrontend
from http import RequestHandler
logger = logging.getLogger(__name__)
__version__ = '2.11.0'
__version__ = '2.11.1'
##
# Core extension class

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 => {

View File

@ -32,7 +32,7 @@ class LibraryLocalAlbums extends React.Component{
loadAlbums(props = this.props){
if (props.mopidy_connected && !this.props.local_albums){
this.props.mopidyActions.getLocalAlbums();
this.props.mopidyActions.getLibraryAlbums();
}
}

View File

@ -28,7 +28,7 @@ class LibraryLocalArtists extends React.Component{
loadArtists(props = this.props){
if( props.mopidy_connected && !props.local_artists ){
this.props.mopidyActions.getArtists();
this.props.mopidyActions.getLibraryArtists();
}
}