From 2eeedc8e328bd42fd2f5f17d9e047cd8db550ec5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 7 Aug 2020 23:48:41 +0200 Subject: inline video --- .../annotationForms/annotationForm.video.js | 6 +++++ .../player/components.inline/inline.video.js | 29 +++++++++++++++------- 2 files changed, 26 insertions(+), 9 deletions(-) (limited to 'animism-align/frontend') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js index 50ca033..6f58d60 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.video.js @@ -23,6 +23,12 @@ export const AnnotationFormVideo = ({ annotation, media, handleSettingsSelect, h defaultOption='Choose a video' onChange={handleSettingsSelect} /> + { if (!media.lookup) return
+ // const { color } = element const className = currentParagraph ? 'media current' : 'media' const annotation = paragraph.annotations[0] const item = media.lookup[annotation.settings.media_id] + const color = CURTAIN_COLOR_LOOKUP[annotation.settings.color] || CURTAIN_COLOR_LOOKUP.white + const style = { + backgroundColor: color.backgroundColor, + color: color.textColor, + } if (!item) return
Media not found: {annotation.settings.media_id}
return (
onDoubleClick(e, paragraph)} > - +
+ +
) -- cgit v1.2.3-70-g09d2