Local directory and hashHistory compatibility

This commit is contained in:
James Barnsley
2017-01-17 12:03:15 +13:00
parent cb725e6173
commit afa209fc87
3 changed files with 9 additions and 18 deletions

View File

@ -661,7 +661,7 @@ const MopidyMiddleware = (function(){
* ======================================================================================
**/
case 'MOPIDY_DIRECTORY':
case 'MOPIDY_GET_DIRECTORY':
store.dispatch({ type: 'MOPIDY_DIRECTORY_LOADED', data: false });
instruct( socket, store, 'library.browse', action.data )
.then( response => {

View File

@ -72,21 +72,6 @@ export default function reducer(mopidy = {}, action){
directory: action.data
});
case 'MOPIDY_PLAYLIST_LOADED':
return Object.assign({}, mopidy, {
playlist: action.data
});
case 'MOPIDY_ARTISTS_LOADED':
return Object.assign({}, mopidy, {
artists: action.data
});
case 'MOPIDY_ALBUMS_LOADED':
return Object.assign({}, mopidy, {
albums: action.data
});
default:
return mopidy
}