diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 17:50:42 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 17:50:42 +0100 |
| commit | 634abd7cec252e61dd171ffbbaa83dec87062bd1 (patch) | |
| tree | 2141f45cdd3ea3427636ffeaa7baabf15fbb3583 /animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js | |
| parent | 1b4da06342d36e5db84f2c6a6c0904c1a20be028 (diff) | |
subtitles in transcript. clicking them seeks video
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js b/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js index 2475801..b2633a4 100644 --- a/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js +++ b/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js @@ -61,17 +61,18 @@ export const Pullquote = ({ paragraph, currentParagraph, currentAnnotation, onAn /> ) } + const isPullquoteCredit = annotation.type === 'pullquote_credit' return ( <span key={annotation.id} className={ - annotation.type === 'pullquote_credit' + isPullquoteCredit ? 'pullquote_credit' : annotation.id === currentAnnotation ? 'current' : '' } - onClick={e => onAnnotationClick(e, paragraph, annotation)} + onClick={e => !isPullquoteCredit && onAnnotationClick(e, paragraph, annotation)} dangerouslySetInnerHTML={{ __html: ' ' + annotation.text + ' ' }} /> ) |
