summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-27 19:21:55 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-27 19:21:55 +0200
commita43615e0c0d4edc34a0f4a14172e559f00be298a (patch)
tree663659aff8b9e221947594bcbd988dd5f55b8b0f /animism-align/frontend/app/views/align/components/annotations/annotation.form.js
parent268f4784b4dc24829ecea74913af301237b98fb4 (diff)
break out fullscreen form. refactor heading
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.form.js')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotation.form.js5
1 files changed, 3 insertions, 2 deletions
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()}
</div>
)