diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 22:05:51 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 22:05:51 +0200 |
| commit | 0a2bc7f1bf214b2099c1f8139a67288c10249565 (patch) | |
| tree | 64a855ca9468ff28f3dd01de88e2d2a1e142caa7 /app/client/live/reducer.js | |
| parent | 79751151d57176188ed36b0d718ac3aaad641afb (diff) | |
better messaging when saving video
Diffstat (limited to 'app/client/live/reducer.js')
| -rw-r--r-- | app/client/live/reducer.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js index 2a6782c..8fa6edd 100644 --- a/app/client/live/reducer.js +++ b/app/client/live/reducer.js @@ -96,6 +96,14 @@ const liveReducer = (state = liveInitialState, action) => { ) return state + case 'SAVING_VIDEO': + return { + ...state, + opt: { + ...state.opt, + savingVideo: true, + } + } case 'SAVE_VIDEO': FileSaver.saveAs( action.blob, @@ -108,6 +116,8 @@ const liveReducer = (state = liveInitialState, action) => { opt: { ...state.opt, recording: false, + savingVideo: false, + recordFrames: 0, } } |
