From 41052dd5b95cf2813662d8201b206ad2af78da40 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 23 Sep 2020 14:16:16 +0200 Subject: fixing heights of carousels. set media title from fullscreen video --- animism-align/frontend/app/views/viewer/viewer.actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js') diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index 7566968..25a353f 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -121,7 +121,7 @@ export const loadSections = () => dispatch => { } // build timeline of fullscreen events - if (FULLSCREEN_UTILITY_ANNOTATION_TYPES.has(annotation.type) || annotation.settings.fullscreen) { + if ((FULLSCREEN_UTILITY_ANNOTATION_TYPES.has(annotation.type) || annotation.settings.fullscreen) && !annotation.settings.inline) { const event = makeFullscreenEvent(eventIndex++, annotation) currentSection.fullscreenTimeline.push(event) } @@ -213,6 +213,10 @@ export const setNavStyle = color => dispatch => { dispatch({ type: types.viewer.set_nav_style, color }) } +export const setMediaTitle = title => dispatch => { + dispatch({ type: types.viewer.set_media_title, title }) +} + export const showComponent = key => dispatch => { dispatch({ type: types.viewer.toggle_component, key, value: true }) } -- cgit v1.2.3-70-g09d2