Very basic local view
This commit is contained in:
@ -95,3 +95,11 @@ export function getPlaylists(){
|
||||
return { type: 'MOPIDY_PLAYLISTS' }
|
||||
}
|
||||
|
||||
export function getBrowse( uri ){
|
||||
return {
|
||||
type: 'MOPIDY_INSTRUCT',
|
||||
call: 'library.browse',
|
||||
value: { uri: uri }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -72,6 +72,11 @@ export default function reducer(mopidy = {}, action){
|
||||
volume: action.data
|
||||
});
|
||||
|
||||
case 'MOPIDY_BROWSE':
|
||||
return Object.assign({}, mopidy, {
|
||||
browse: action.data
|
||||
});
|
||||
|
||||
default:
|
||||
return mopidy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user