summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/components/annotations/annotation.index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-08 23:37:40 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-08 23:37:40 +0200
commit18472645a7879baf00332a7ee5be8c4338bb8d21 (patch)
treefc3f57803f605e4942aac010a0f7c528d0d0386c /animism-align/frontend/views/align/components/annotations/annotation.index.js
parentf7cf600fe1abc92ddccdbadf30315d6f9785994f (diff)
adding annotations of type video
Diffstat (limited to 'animism-align/frontend/views/align/components/annotations/annotation.index.js')
-rw-r--r--animism-align/frontend/views/align/components/annotations/annotation.index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/views/align/components/annotations/annotation.index.js b/animism-align/frontend/views/align/components/annotations/annotation.index.js
index eccd8b7..3a78dd4 100644
--- a/animism-align/frontend/views/align/components/annotations/annotation.index.js
+++ b/animism-align/frontend/views/align/components/annotations/annotation.index.js
@@ -75,7 +75,7 @@ class AnnotationIndex extends Component {
actions.align.showEditAnnotationForm(annotation)
}
render() {
- const { timeline, annotationInForm } = this.props
+ const { timeline, media, annotationInForm } = this.props
const { start_ts, zoom, selected_annotation_id } = timeline
const { items } = this.state
const className = (zoom < 2)
@@ -98,6 +98,7 @@ class AnnotationIndex extends Component {
y={y}
selected={annotation.id === selected_annotation_id}
annotation={annotation}
+ media={media}
onClick={this.handleClick}
onDoubleClick={this.handleDoubleClick}
/>
@@ -112,6 +113,7 @@ const mapStateToProps = state => ({
timeline: state.align.timeline,
annotationInForm: state.align.annotation,
index: state.annotation.index,
+ media: state.media.index,
})
const mapDispatchToProps = dispatch => ({