From e9e753640f1c96ffaf91b35cfc46126fcdb15e2f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 Nov 2020 18:44:08 +0100 Subject: better control over cover image --- .../components/annotations/annotation.form.js | 17 +++---------- .../annotationForms/annotationForm.text.js | 29 ++++++++++++++++++++-- 2 files changed, 30 insertions(+), 16 deletions(-) (limited to 'animism-align/frontend/app/views/align/components/annotations') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js index e0a66e4..7b1918a 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js @@ -5,24 +5,13 @@ import { connect } from 'react-redux' import actions from 'app/actions' -import { MEDIA_ANNOTATION_TYPES } from 'app/constants' -import { clamp, timestamp, capitalize } from 'app/utils' +import { ANNOTATION_SELECT_OPTIONS, MEDIA_ANNOTATION_TYPES } from 'app/constants' +import { timestamp } from 'app/utils' import { timeToPosition } from 'app/utils/align.utils' import { Select } from 'app/common' import { annotationFormLookup } from './annotationForms' -const ANNOTATION_TYPES = [ - 'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'paragraph_end', - 'footnote', - 'text_plate', - 'video', 'subtitle', - 'image', - 'gallery', 'carousel', 'grid', 'vitrine', - 'gallery_advance', - 'curtain', 'intro', 'schedule', -].map(name => ({ name, label: capitalize(name.replace('_', ' ')) })) - const annotationTextTypes = new Set([ 'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'footnote', 'text_plate', ]) @@ -148,7 +137,7 @@ class AnnotationForm extends Component { +