From a43615e0c0d4edc34a0f4a14172e559f00be298a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 27 Jul 2020 19:21:55 +0200 Subject: break out fullscreen form. refactor heading --- .../app/views/align/components/annotations/annotation.form.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.form.js') 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 7882884..5842aab 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 @@ -13,7 +13,7 @@ import { Select } from 'app/common' import { annotationFormLookup } from './annotationForms' const ANNOTATION_TYPES = [ - 'sentence', 'header', 'paragraph_end', + 'sentence', 'section_heading', 'heading_text', 'paragraph_end', 'video', 'image', 'image_carousel', 'curtain', @@ -124,7 +124,8 @@ class AnnotationForm extends Component { > {this.renderButtons()} {annotation.type === 'sentence' && this.renderTextarea()} - {annotation.type === 'header' && this.renderTextarea()} + {annotation.type === 'section_heading' && this.renderTextarea()} + {annotation.type === 'text_heading' && this.renderTextarea()} {(annotation.type in annotationFormLookup) && this.renderElementForm()} ) -- cgit v1.2.3-70-g09d2