summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-09 17:50:42 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-09 17:50:42 +0100
commit634abd7cec252e61dd171ffbbaa83dec87062bd1 (patch)
tree2141f45cdd3ea3427636ffeaa7baabf15fbb3583 /animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js
parent1b4da06342d36e5db84f2c6a6c0904c1a20be028 (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.js5
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 + ' ' }}
/>
)