summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-07 22:59:03 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-07 22:59:03 +0200
commit475638e617c5053aeb897d26bfba4c8d1975c614 (patch)
tree28762550bf791983e49bd33ec909c79f30f8a09f /animism-align/frontend/app/views/viewer/sections/viewer.sections.js
parent51abc790cb4952456029db1132c0e8730618afcd (diff)
next button
Diffstat (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.js')
-rw-r--r--animism-align/frontend/app/views/viewer/sections/viewer.sections.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
index 6d5e932..f4abbd6 100644
--- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
+++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
@@ -8,15 +8,6 @@ import { ROMAN_NUMERALS } from 'app/constants'
import { thumbnailURL } from 'app/utils/annotation.utils'
class ViewerSections extends Component {
- componentDidMount() {
- }
-
- handleSectionSelection(section) {
- actions.audio.seek(section.start_ts)
- actions.audio.play()
- actions.viewer.hideComponent('nav')
- }
-
render() {
const { sections } = this.props
return (
@@ -27,7 +18,7 @@ class ViewerSections extends Component {
<div
className="viewer-section"
key={section.index}
- onClick={() => this.handleSectionSelection(section)}
+ onClick={() => actions.viewer.seekToSection(section)}
>
<div>
<div className="section-thumbnail" style={{