diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 14:50:17 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 14:50:17 +0200 |
| commit | 2f2d58c735683263ef0731f540b13a025eb9a575 (patch) | |
| tree | e9123a1cc70e5af45453176885cc9a7486957a02 /app/client/live | |
| parent | 39ee780fce2c75bcfed078df9cbbfbc04853da1d (diff) | |
cmd fn
Diffstat (limited to 'app/client/live')
| -rw-r--r-- | app/client/live/reducer.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js index 93fc448..3771ff0 100644 --- a/app/client/live/reducer.js +++ b/app/client/live/reducer.js @@ -4,6 +4,8 @@ const liveInitialState = { loading: false, error: null, opt: {}, + checkpoints: [], + videos: [], } const liveReducer = (state = liveInitialState, action) => { @@ -30,6 +32,24 @@ const liveReducer = (state = liveInitialState, action) => { } } + case 'LIST_CHECKPOINTS': + return { + ...state, + checkpoints: { + ...state.opt, + [action.key]: action.value, + } + } + + case 'LIST_VIDEOS': + return { + ...state, + videos: { + ...state.opt, + [action.key]: action.value, + } + } + default: return state } |
