From e83fbeeefed0a8416b9417f713bc335d79cfbfc7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 Sep 2020 19:33:22 +0200 Subject: pullquote, but may be hidden in the transcript --- .../app/views/viewer/transcript/components/elementTypes.text.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'animism-align/frontend/app/views/viewer/transcript/components') 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] -- cgit v1.2.3-70-g09d2