From 2f2d58c735683263ef0731f540b13a025eb9a575 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 14:50:17 +0200 Subject: cmd fn --- app/client/live/reducer.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'app/client/live/reducer.js') 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 } -- cgit v1.2.3-70-g09d2