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

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