diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 17:58:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 17:58:04 +0200 |
| commit | 4bc41e2c2a8b3fc8b22226a7f3ec6cc1e1a275b6 (patch) | |
| tree | 5852f240d7d84afd5e8676029df238ba08b93c89 /app/client/live/reducer.js | |
| parent | 34573a4f34c862ee884d0a3fd5badb1d4af1d9c2 (diff) | |
more dropdowns
Diffstat (limited to 'app/client/live/reducer.js')
| -rw-r--r-- | app/client/live/reducer.js | 7 |
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, |
