summaryrefslogtreecommitdiff
path: root/app/client/live/reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 17:58:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 17:58:04 +0200
commit4bc41e2c2a8b3fc8b22226a7f3ec6cc1e1a275b6 (patch)
tree5852f240d7d84afd5e8676029df238ba08b93c89 /app/client/live/reducer.js
parent34573a4f34c862ee884d0a3fd5badb1d4af1d9c2 (diff)
more dropdowns
Diffstat (limited to 'app/client/live/reducer.js')
-rw-r--r--app/client/live/reducer.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js
index c667689..e14a039 100644
--- a/app/client/live/reducer.js
+++ b/app/client/live/reducer.js
@@ -5,6 +5,7 @@ const liveInitialState = {
error: null,
opt: {},
checkpoints: [],
+ checkpoint_dir: ['latest'],
sequences: [],
}
@@ -38,6 +39,12 @@ const liveReducer = (state = liveInitialState, action) => {
checkpoints: action.checkpoints,
}
+ case 'LIST_CHECKPOINT_DIR':
+ return {
+ ...state,
+ checkpoint_dir: action.checkpoint_dir,
+ }
+
case 'LIST_SEQUENCES':
return {
...state,