From 6ec0031e7ec008faccbbace2363f9240c7e08ec7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 18 Aug 2020 16:50:12 +0200 Subject: adding schedule again --- animism-align/frontend/app/constants.js | 2 +- .../annotations/annotationTypes/annotationTypes.utility.js | 3 +++ .../views/viewer/player/components.inline/inline.utility.js | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/animism-align/frontend/app/constants.js b/animism-align/frontend/app/constants.js index cd2b3fd..6650bee 100644 --- a/animism-align/frontend/app/constants.js +++ b/animism-align/frontend/app/constants.js @@ -58,7 +58,7 @@ export const MEDIA_LABEL_TYPES = { } export const INLINE_UTILITY_ANNOTATION_TYPES = new Set([ - 'intro', + 'intro', 'schedule', ]) export const FULLSCREEN_UTILITY_ANNOTATION_TYPES = new Set([ diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.utility.js b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.utility.js index 45ea239..55257ef 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.utility.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.utility.js @@ -38,6 +38,9 @@ export const AnnotationIntro = ({ y, annotation, timeline, selected, onClick, on export const AnnotationSchedule = ({ y, annotation, timeline, selected, onClick, onDoubleClick }) => { const className = selected ? 'annotation utility schedule selected' : 'annotation utility schedule' + let style = { + top: y, + } return (
{ - a.add(b.author) - return a - }, new Set) return (
{ +export const Schedule = ({ media }) => { + const nameLookup = Object.values(media.lookup).reduce((a,b) => { + a.add(b.author) + return a + }, new Set) return (
-- cgit v1.2.3-70-g09d2