Snapcast config via pusher

This commit is contained in:
James Barnsley
2018-03-26 10:36:13 +13:00
parent 5ab256b31b
commit 96d4ec3bdf
12 changed files with 274 additions and 244 deletions

View File

@ -479,12 +479,12 @@ const PusherMiddleware = (function(){
locale: (action.config.locale ? action.config.locale : null),
country: (action.config.country ? action.config.country : null),
authorization_url: (action.config.spotify_authorization_url ? action.config.spotify_authorization_url : null)
}))
}));
store.dispatch(lastfmActions.set({
authorization_url: (action.config.lastfm_authorization_url ? action.config.lastfm_authorization_url : null)
}))
}));
next(action )
next(action);
break
case 'PUSHER_DEBUG':

View File

@ -51,6 +51,9 @@ export default function reducer(pusher = {}, action){
case 'PUSHER_START_UPGRADE':
return Object.assign({}, pusher, { upgrading: true });
case 'PUSHER_CONFIG':
return Object.assign({}, pusher, { config: action.config });
case 'PUSHER_SNAPCAST':
return Object.assign({}, pusher, { snapcast_clients: action.snapcast_clients, snapcast_groups: action.snapcast_groups });