diff options
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index fdd47a9..b4a374c 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -15,18 +15,6 @@ import { buildParagraphs } from 'app/utils/transcript.utils' import { annotationFadeTimings } from 'app/utils/annotation.utils' import { getNextSection } from 'app/utils/viewer.utils' -const newSection = (annotation, index, mediaIndex) => ({ - start_ts: annotation.start_ts, - end_ts: 0, - title: annotation.text, - media: [], - fullscreenTimeline: [], - index, - mediaIndex, - no_audio: !!annotation.settings.no_audio, - section_nav_color: annotation.settings.section_nav_color || 'white', -}) - // build the list of sections from the raw annotation list. export const loadSections = () => dispatch => { // list of all sections @@ -184,6 +172,19 @@ export const loadSections = () => dispatch => { dispatch({ type: types.viewer.load_sections, sections }) } +const newSection = (annotation, index, mediaIndex) => ({ + start_ts: annotation.start_ts, + end_ts: 0, + title: annotation.text, + media: [], + fullscreenTimeline: [], + index, + mediaIndex, + no_audio: !!annotation.settings.no_audio, + color: annotation.settings.color || 'white', + section_nav_color: annotation.settings.section_nav_color || 'white', +}) + const makeFullscreenEvent = (index, annotation) => { const timing = annotationFadeTimings(annotation) const event = { |
