diff options
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 11 |
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({ |
