summaryrefslogtreecommitdiff
path: root/app/client/live/live.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/live/live.reducer.js')
-rw-r--r--app/client/live/live.reducer.js20
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,