summaryrefslogtreecommitdiff
path: root/app/client/live
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-09-05 12:00:28 +0200
committerjules@lens <julescarbon@gmail.com>2018-09-05 12:00:28 +0200
commit9abfa16dc059d042c21f1636ecc8797ef29a030d (patch)
treed0583cb5dae01de1abc57ed8f7587d23242ed6f0 /app/client/live
parent0a3c6743543dd3dfcb876f5ce735b72d050e981d (diff)
parent15eb6806b6e216255f33abcb885f6cdbc38a7663 (diff)
Merge branch 'master' of asdf.us:live-cortex
Diffstat (limited to 'app/client/live')
-rw-r--r--app/client/live/live.reducer.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js
index 7fd7667..dfdf7ee 100644
--- a/app/client/live/live.reducer.js
+++ b/app/client/live/live.reducer.js
@@ -11,6 +11,7 @@ const liveInitialState = {
recurse_roll: 0, rotate: 0, scale: 0, process_frac: 0.5,
view_mode: 'b',
},
+ all_checkpoints: [],
checkpoints: [],
epochs: ['latest'],
sequences: [],
@@ -57,7 +58,15 @@ const liveReducer = (state = liveInitialState, action) => {
epochs: [],
}
+ case types.socket.list_all_checkpoints:
+ return {
+ ...state,
+ all_checkpoints: action.all_checkpoints,
+ epochs: [],
+ }
+
case types.socket.list_epochs:
+ console.log(action)
if (action.epochs === "not found") return { ...state, epochs: [] }
return {
...state,