diff options
Diffstat (limited to 'app/client/modules/pix2wav/pix2wav.reducer.js')
| -rw-r--r-- | app/client/modules/pix2wav/pix2wav.reducer.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/client/modules/pix2wav/pix2wav.reducer.js b/app/client/modules/pix2wav/pix2wav.reducer.js index 8db1046..def4f30 100644 --- a/app/client/modules/pix2wav/pix2wav.reducer.js +++ b/app/client/modules/pix2wav/pix2wav.reducer.js @@ -1,5 +1,6 @@ import types from '../../types' import datasetReducer from '../../dataset/dataset.reducer' +import util from '../../util' const pix2wavInitialState = { loading: true, @@ -25,7 +26,7 @@ const pix2wavReducer = (state = pix2wavInitialState, action) => { console.log(action) return { ...state, - status: 'Rendering frame /', + status: 'Rendering frame ' + action.count, } case types.wav2pix.draw_finish: return { @@ -37,6 +38,11 @@ const pix2wavReducer = (state = pix2wavInitialState, action) => { ...state, status: 'Built zip file', } + case types.wav2pix.uploading: + return { + ...state, + status: 'Uploading zip file (' + util.hush_size(action.size) + ')', + } default: return state } |
