summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/transcript/components
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-21 19:33:22 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-21 19:33:22 +0200
commite83fbeeefed0a8416b9417f713bc335d79cfbfc7 (patch)
treeba81c5c464997ec461bee9c66b065e0dac5d9030 /animism-align/frontend/app/views/viewer/transcript/components
parent2d7fb47edf6c9f089c286567665f6af31bcbd9f4 (diff)
pullquote, but may be hidden in the transcript
Diffstat (limited to 'animism-align/frontend/app/views/viewer/transcript/components')
-rw-r--r--animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js
index 49cbdd3..ed90bca 100644
--- a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js
+++ b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js
@@ -3,6 +3,7 @@ import React, { Component } from 'react'
import { ROMAN_NUMERALS } from 'app/constants'
export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick }) => {
+ if (paragraph.settings && paragraph.settings.hide_in_transcript) return
let className = paragraph.type
if (className !== 'paragraph') className += ' paragraph'
if (currentParagraph) className += ' current'
@@ -25,6 +26,7 @@ export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAn
}
export const Pullquote = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick }) => {
+ if (paragraph.settings && paragraph.settings.hide_in_transcript) return
let className = paragraph.type
if (className !== 'paragraph') className += ' paragraph'
if (currentParagraph) className += ' current'
@@ -53,6 +55,7 @@ export const Pullquote = ({ paragraph, currentParagraph, currentAnnotation, onAn
}
export const ParagraphHeading = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick }) => {
+ if (paragraph.settings && paragraph.settings.hide_in_transcript) return
let className = currentParagraph ? 'section_heading current' : 'section_heading'
const text = paragraph.annotations.map(annotation => annotation.text).join(' ')
const firstAnnotation = paragraph.annotations[0]