diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 03:38:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 03:38:41 +0200 |
| commit | 24a47dfa9d25c943bf1b51a1daf87140f76b3fbb (patch) | |
| tree | 38fe4ad6816e0958d5083fe16120a047c6ee94d3 /app/client/modules/pix2wav/pix2wav.reducer.js | |
| parent | 2538fbd5471a61d51742281df0e019a2dd4ea24e (diff) | |
displaying these gray ass thumbnails
Diffstat (limited to 'app/client/modules/pix2wav/pix2wav.reducer.js')
| -rw-r--r-- | app/client/modules/pix2wav/pix2wav.reducer.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/client/modules/pix2wav/pix2wav.reducer.js b/app/client/modules/pix2wav/pix2wav.reducer.js index 0b55b07..8db1046 100644 --- a/app/client/modules/pix2wav/pix2wav.reducer.js +++ b/app/client/modules/pix2wav/pix2wav.reducer.js @@ -4,6 +4,7 @@ import datasetReducer from '../../dataset/dataset.reducer' const pix2wavInitialState = { loading: true, progress: { i: 0, n: 0 }, + status: '', error: null, folder_id: 0, data: null, @@ -15,6 +16,27 @@ const pix2wavReducer = (state = pix2wavInitialState, action) => { } switch (action.type) { + case types.wav2pix.loaded_buffer: + return { + ...state, + status: 'Loaded buffer', + } + case types.wav2pix.draw_progress: + console.log(action) + return { + ...state, + status: 'Rendering frame /', + } + case types.wav2pix.draw_finish: + return { + ...state, + status: 'Render complete', + } + case types.wav2pix.load_zip: + return { + ...state, + status: 'Built zip file', + } default: return state } |
