summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-29 17:10:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-29 17:10:04 +0200
commitd5b95568926623245257c618238485bd41bf66cd (patch)
tree7f3bcb1ffc5e3015890c368aa35fd2d76ade98be /public/bundle.js
parent3791925f07a2e21c3c99c18222b9773ff174344d (diff)
reducer for socket events
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/public/bundle.js b/public/bundle.js
index 6d9e13d..87cf879 100644
--- a/public/bundle.js
+++ b/public/bundle.js
@@ -3798,7 +3798,16 @@ var samplernnReducer = function samplernnReducer() {
case _types2.default.folder.upload_complete:
console.log(action);
return state;
+ case _types2.default.socket.status:
+ return samplernnSocket(state, action);
+ default:
+ return state;
+ }
+};
+var samplernnSocket = function samplernnSocket(state, action) {
+ console.log(action);
+ switch (action.key) {
default:
return state;
}
@@ -3858,7 +3867,7 @@ exports.default = {
_socket.socket.on('status', function (data) {
console.log('got status', data.key, data.value);
- _store.store.dispatch({ type: _types2.default.socket.status });
+ _store.store.dispatch(_extends({ type: _types2.default.socket.status }, data));
switch (data.key) {
case 'processing':
_store.store.dispatch(_extends({