diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 13:55:51 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 13:55:51 +0200 |
| commit | 39e78eac1d53b8ebc5e69f127dec5ee5b623a274 (patch) | |
| tree | df5bd69685cadc90ed10a0596d097fad26b9399f /app/client/live/live.reducer.js | |
| parent | d1435a137bb50c514de8a79fa0c80264dfbb9f35 (diff) | |
dont clobber seq/chp
Diffstat (limited to 'app/client/live/live.reducer.js')
| -rw-r--r-- | app/client/live/live.reducer.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js index f1f2f4e..3a5b661 100644 --- a/app/client/live/live.reducer.js +++ b/app/client/live/live.reducer.js @@ -17,7 +17,6 @@ const liveInitialState = { const liveReducer = (state = liveInitialState, action) => { let results; - if (action.type !== 'SYSTEM_STDOUT') console.log(action.type, action) switch(action.type) { case types.socket.load_params: if (! action.opt || ! Object.keys(action.opt).length) { @@ -61,6 +60,25 @@ const liveReducer = (state = liveInitialState, action) => { sequences: action.sequences, } + case types.player.loading_sequence: + return { + ...state, + opt: { + ...state.opt, + sequence_name: action.sequence_name, + } + } + + case types.player.loading_checkpoint: + return { + ...state, + opt: { + ...state.opt, + checkpoint_name: action.checkpoint_name, + epoch: action.epoch, + } + } + case types.player.set_fps: return { ...state, |
