Renaming PUSHER_RADIO to RADIO; Fixing updates when radio CHANGED as well as when started/stopped
This commit is contained in:
@ -421,7 +421,7 @@ export function resolveRadioSeeds( radio ){
|
||||
return (dispatch, getState) => {
|
||||
|
||||
// flush out the previous store value
|
||||
dispatch({ type: 'PUSHER_RADIO_SEEDS_RESOLVING' });
|
||||
dispatch({ type: 'RADIO_SEEDS_RESOLVING' });
|
||||
|
||||
var resolved_seeds = {
|
||||
seed_artists: [],
|
||||
@ -469,7 +469,7 @@ export function resolveRadioSeeds( radio ){
|
||||
$, requests
|
||||
).then( () => {
|
||||
dispatch({
|
||||
type: 'PUSHER_RADIO_SEEDS_RESOLVED',
|
||||
type: 'RADIO_SEEDS_RESOLVED',
|
||||
data: resolved_seeds
|
||||
});
|
||||
});
|
||||
|
||||
@ -84,7 +84,7 @@ const SpotifyMiddleware = (function(){
|
||||
break
|
||||
|
||||
// when our mopidy server current track changes
|
||||
case 'PUSHER_RADIO':
|
||||
case 'RADIO':
|
||||
|
||||
// proceed as usual so we don't inhibit default functionality
|
||||
next(action)
|
||||
|
||||
Reference in New Issue
Block a user