Edit client modal... we'll need a server one too

This commit is contained in:
James Barnsley
2018-03-23 22:06:12 +13:00
parent 2be4851ecc
commit e7abde42f8
11 changed files with 1685 additions and 2260 deletions

View File

@ -61,6 +61,11 @@ export default function reducer(pusher = {}, action){
snapcast_clients[action.key] = client;
return Object.assign({}, pusher, { snapcast_clients: snapcast_clients });
case 'PUSHER_SNAPCAST_CLIENT_REMOVED':
var snapcast_clients = Object.assign({}, pusher.snapcast_clients);
delete snapcast_clients[action.key];
return Object.assign({}, pusher, { snapcast_clients: snapcast_clients });
default:
return pusher
}