From bc1efe107d7421a4a3a0c515982e0750f87bee05 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 Nov 2020 15:38:33 +0100 Subject: curtain backgrounds --- animism-align/frontend/app/views/viewer/viewer.actions.js | 3 +++ 1 file changed, 3 insertions(+) (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 277cb21..fa63804 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -192,6 +192,9 @@ export const loadSections = () => dispatch => { // currentSection.fullscreenTimeline.unshift(initial_curtain_event) } + if (currentSection.fullscreenTimeline.length && currentSection.fullscreenTimeline[0].type === 'curtain' && currentSection.media.length) { + currentSection.fullscreenTimeline[0].mediaItem = currentSection.media[0].media + } currentSection.duration = currentSection.end_ts - currentSection.start_ts currentSection.inlineParagraphCount = currentSection.paragraphs.filter(p => !p.hidden).length // console.log(i, currentSection.inlineParagraphCount) -- cgit v1.2.3-70-g09d2