From 25815ab4916dc8c9e3256cbfe53bea0535930f30 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 4 Sep 2018 13:53:30 +0200 Subject: fix loading bars --- app/client/modules/samplernn/samplernn.actions.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'app/client/modules/samplernn') diff --git a/app/client/modules/samplernn/samplernn.actions.js b/app/client/modules/samplernn/samplernn.actions.js index f4f7a6d..e4de1dd 100644 --- a/app/client/modules/samplernn/samplernn.actions.js +++ b/app/client/modules/samplernn/samplernn.actions.js @@ -21,7 +21,11 @@ export const load_directories = (id) => (dispatch) => { actions.socket.disk_usage({ module, dir: 'datasets' }), load_loss()(dispatch), ], (percent, i, n) => { - dispatch({ type: types.app.load_progress, progress: { i, n }}) + dispatch({ + type: types.app.load_progress, + progress: { i, n }, + data: { module: 'samplernn' }, + }) }).then(res => { // console.log(res) const [datasetApiReport, datasets, results, output, datasetUsage, lossReport] = res @@ -128,7 +132,11 @@ export const load_graph = () => dispatch => { load_loss()(dispatch), actions.socket.list_directory({ module, dir: 'results' }), ], (percent, i, n) => { - dispatch({ type: types.app.load_progress, progress: { i, n }}) + dispatch({ + type: types.app.load_progress, + progress: { i, n }, + data: { module: 'samplernn' }, + }) }).then(res => { const [lossReport, results] = res dispatch({ -- cgit v1.2.3-70-g09d2