diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-08-30 22:59:28 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-08-30 22:59:28 +0200 |
| commit | 70b4cc5adcef18d498b539579ecfa626aa5e6c18 (patch) | |
| tree | e86c4903e9916fef2775d1131d73c9d0b65f73a5 /app/client/live | |
| parent | ca53592e108e2189ef1b625c45d2b2a23b7ab145 (diff) | |
group sequences/checkpoints by folder
Diffstat (limited to 'app/client/live')
| -rw-r--r-- | app/client/live/live.reducer.js | 9 |
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, |
