summaryrefslogtreecommitdiff
path: root/app/client/live
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 14:50:17 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 14:50:17 +0200
commit2f2d58c735683263ef0731f540b13a025eb9a575 (patch)
treee9123a1cc70e5af45453176885cc9a7486957a02 /app/client/live
parent39ee780fce2c75bcfed078df9cbbfbc04853da1d (diff)
cmd fn
Diffstat (limited to 'app/client/live')
-rw-r--r--app/client/live/reducer.js20
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
}