diff --git a/resources/assets/js/annotations/annotatorContainer.vue b/resources/assets/js/annotations/annotatorContainer.vue index 30b91599c..174a480aa 100644 --- a/resources/assets/js/annotations/annotatorContainer.vue +++ b/resources/assets/js/annotations/annotatorContainer.vue @@ -354,7 +354,7 @@ export default { if (this.isEditor) { if (annotation.labels.length > 1) { AnnotationsStore.detachLabel(annotation, annotationLabel) - .then(() => this.refreshAnnotation(annotation)) + .then(() => this.refreshSingleAnnotation(annotation)) .catch(handleErrorResponse); } else if (confirm('Detaching the last label of an annotation deletes the whole annotation. Do you want to delete the annotation?')) { this.handleDeleteAnnotation(annotation); @@ -450,8 +450,8 @@ export default { .catch(handleErrorResponse); } }, - refreshAnnotation(annotation){ - this.$refs.canvas.refreshAnnotation(annotation); + refreshSingleAnnotation(annotation){ + this.$refs.canvas.refreshSingleAnnotation(annotation); }, handleAttachAllSelected() { this.selectedAnnotations.forEach(this.handleAttachLabel); diff --git a/resources/assets/js/annotations/components/annotationCanvas.vue b/resources/assets/js/annotations/components/annotationCanvas.vue index 6383a1a1f..1227754c5 100644 --- a/resources/assets/js/annotations/components/annotationCanvas.vue +++ b/resources/assets/js/annotations/components/annotationCanvas.vue @@ -597,7 +597,7 @@ export default { updateMousePosition(e) { this.mousePosition = e.coordinate; }, - refreshAnnotation(annotation) { + refreshSingleAnnotation(annotation) { let source = this.annotationSource; let newFeature = this.createFeature(annotation); diff --git a/resources/assets/js/videos/components/videoScreen/annotationPlayback.vue b/resources/assets/js/videos/components/videoScreen/annotationPlayback.vue index e24f951a9..7d4ff7e8c 100644 --- a/resources/assets/js/videos/components/videoScreen/annotationPlayback.vue +++ b/resources/assets/js/videos/components/videoScreen/annotationPlayback.vue @@ -49,7 +49,7 @@ export default { }, }, methods: { - refreshAnnotations(time) { + refreshAllAnnotations(time) { let source = this.annotationSource; let selected = this.selectedFeatures; let annotations = this.annotationsPreparedToRender; @@ -126,7 +126,7 @@ export default { this.updateGeometry(feature, time); }); }, - refreshAnnotation(annotation) { + refreshSingleAnnotation(annotation) { let source = this.annotationSource; let newFeature = this.createFeature(annotation); @@ -237,10 +237,10 @@ export default { }, created() { Events.$on('video.swap', this.refreshAnnotation); - this.$on('refresh', this.refreshAnnotations); + this.$on('refresh', this.refreshAllAnnotations); this.$once('map-ready', () => { this.$watch('annotationsRevision', () => { - this.refreshAnnotations(this.video.currentTime); + this.refreshAllAnnotations(this.video.currentTime); }); }); }, diff --git a/resources/assets/js/videos/videoContainer.vue b/resources/assets/js/videos/videoContainer.vue index e47b70880..ab66a92c1 100644 --- a/resources/assets/js/videos/videoContainer.vue +++ b/resources/assets/js/videos/videoContainer.vue @@ -432,7 +432,7 @@ export default { .catch(handleErrorResponse); }, refreshSingleAnnotation(annotation) { - this.$refs.videoScreen.refreshAnnotation(annotation); + this.$refs.videoScreen.refreshSingleAnnotation(annotation); }, initAnnotationFilters() { let reverseShapes = {};