Commit 6f751366 authored by anton's avatar anton

Supply correct time value on timecode label click

parent e5c24d4a
Pipeline #60439 passed with stage
in 29 seconds
......@@ -15,7 +15,7 @@
q-item-main
.row.items-center
timecode-label(
@click.native="clickTimecode()",
@click.native="clickTimecode(annotation.target.selector._valueMillis)",
:millis="annotation.target.selector._valueMillis",
:videoDate="videoDate")
......@@ -23,7 +23,7 @@
.timecode-label-duration-spacer
timecode-label(
@click.native="clickTimecode()",
@click.native="clickTimecode(annotation.target.selector._valueMillis + annotation.target.selector._valueDuration)",
:millis="getAnnotationEndMillis(annotation)",
:videoDate="videoDate")
......@@ -83,8 +83,8 @@
getAnnotationEndMillis (annotation) {
return annotation.target.selector._valueMillis + annotation.target.selector._valueDuration
},
clickTimecode () {
this.$emit('onTimecode', {annotation: this.annotation, index: this.index})
clickTimecode (millis) {
this.$emit('onTimecode', {annotation: this.annotation, index: this.index, millis})
},
editAnnotation () {
this.mode.edit = true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment