summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.reducer.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.reducer.js20
1 files changed, 16 insertions, 4 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.reducer.js b/animism-align/frontend/app/views/viewer/viewer.reducer.js
index 70e94ee..1589ea4 100644
--- a/animism-align/frontend/app/views/viewer/viewer.reducer.js
+++ b/animism-align/frontend/app/views/viewer/viewer.reducer.js
@@ -2,25 +2,37 @@ import * as types from 'app/types'
import { GROWL } from 'app/constants'
const initialState = {
+ /* UI component display state */
transcript: false,
checklist: false,
nav: false,
+ share: false,
+
+ /* section look and navigation */
sections: { loading: true },
currentSection: null,
nextSection: null,
- navStyle: 'white',
- mediaTitle: null,
autoAdvance: false,
atEndOfSection: false,
+
+ /* color of the bar / logo / icons */
+ navStyle: 'white',
+
+ /* title of media if in fullscreen mode */
+ mediaTitle: null,
+
+ /* growl message at top */
growlOpen: true,
growlMessage: GROWL.OPENING_MESSAGE,
+
+ /* vitrine */
vitrineModal: {
open: false,
media: null,
index: null,
},
- options: {
- }
+
+ options: {},
}
export default function viewerReducer(state = initialState, action) {