From ce80f0fe7fa60fe5666057ed88c5ca69634df083 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 28 Sep 2020 17:02:03 +0200 Subject: share dialog --- .../frontend/app/views/viewer/viewer.reducer.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.reducer.js') 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) { -- cgit v1.2.3-70-g09d2