diff --git a/resources/assets/js/annotations/annotatorContainer.vue b/resources/assets/js/annotations/annotatorContainer.vue index e45b0167c..25a3e8811 100644 --- a/resources/assets/js/annotations/annotatorContainer.vue +++ b/resources/assets/js/annotations/annotatorContainer.vue @@ -160,6 +160,9 @@ export default { annotationsHiddenByFilter() { return this.annotations.length !== this.filteredAnnotations.length; }, + annotationCount() { + return this.annotations.length; + } }, methods: { getImageAndAnnotationsPromises(id) { diff --git a/resources/assets/js/annotations/components/annotationsTab.vue b/resources/assets/js/annotations/components/annotationsTab.vue index ab3f8c26a..5377ab034 100644 --- a/resources/assets/js/annotations/components/annotationsTab.vue +++ b/resources/assets/js/annotations/components/annotationsTab.vue @@ -42,6 +42,10 @@ export default { type: Boolean, default: false, }, + totalAnnotationCount: { + type: Number, + default: 0 + } }, computed: { labelItems() { @@ -79,6 +83,13 @@ export default { }; }); }, + annotationBadgeCount() { + if (this.hasActiveFilter) { + return this.annotations.length + "/" + this.totalAnnotationCount + } else { + return this.totalAnnotationCount; + } + }, }, methods: { handleSelect(annotation, shift) { diff --git a/resources/assets/js/videos/videoContainer.vue b/resources/assets/js/videos/videoContainer.vue index ab66a92c1..5b149e009 100644 --- a/resources/assets/js/videos/videoContainer.vue +++ b/resources/assets/js/videos/videoContainer.vue @@ -162,6 +162,9 @@ export default { annotationsHiddenByFilter() { return this.annotations.length !== this.filteredAnnotations.length; }, + annotationCount() { + return this.annotations.length; + } }, methods: { prepareAnnotation(annotation) { diff --git a/resources/views/annotations/show/tabs/annotations.blade.php b/resources/views/annotations/show/tabs/annotations.blade.php index 515e92334..b79d36e2a 100644 --- a/resources/views/annotations/show/tabs/annotations.blade.php +++ b/resources/views/annotations/show/tabs/annotations.blade.php @@ -1,6 +1,7 @@ Some annotations are hidden by a filter. +
Total + +