diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-04 13:53:30 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-04 13:53:30 +0200 |
| commit | 25815ab4916dc8c9e3256cbfe53bea0535930f30 (patch) | |
| tree | 4d87860e82ede57780497c6016e54bf1af68ca91 /app/client/modules/samplernn | |
| parent | 56619248e5032b644ec7a8e215bd59aecad86c73 (diff) | |
fix loading bars
Diffstat (limited to 'app/client/modules/samplernn')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.actions.js | 12 |
1 files changed, 10 insertions, 2 deletions
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({ |
