diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 03:52:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 03:52:59 +0200 |
| commit | 57726902fe70f6c051c20f7104a9b78687c15479 (patch) | |
| tree | 50e70dc944f96f5466b785a70ed330bb647368d0 /app/client/modules/samplernn/samplernn.reducer.js | |
| parent | 94f083788d58bccb09f775ef731827d29d719d43 (diff) | |
progress barz
Diffstat (limited to 'app/client/modules/samplernn/samplernn.reducer.js')
| -rw-r--r-- | app/client/modules/samplernn/samplernn.reducer.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/client/modules/samplernn/samplernn.reducer.js b/app/client/modules/samplernn/samplernn.reducer.js index b294c2f..11a9d9e 100644 --- a/app/client/modules/samplernn/samplernn.reducer.js +++ b/app/client/modules/samplernn/samplernn.reducer.js @@ -2,6 +2,7 @@ import types from '../../types' const samplernnInitialState = { loading: true, + progress: { i: 0, n: 0 }, error: null, folders: [], folder: {}, @@ -103,6 +104,12 @@ const samplernnReducer = (state = samplernnInitialState, action) => { lossReport: action.lossReport, } + case types.app.load_progress: + return { + ...state, + progress: action.progress + } + default: return state } |
