Renaming PUSHER_RADIO to RADIO; Fixing updates when radio CHANGED as well as when started/stopped

This commit is contained in:
James Barnsley
2017-01-09 10:49:50 +13:00
parent 3b5babf52c
commit 6eca34b3f5
7 changed files with 22 additions and 19 deletions

View File

@ -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
});
});

View File

@ -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)