From 0a3ae1222a80263d5374607d55097c333e20da03 Mon Sep 17 00:00:00 2001 From: Aya Bezine Date: Wed, 11 Dec 2024 16:47:33 +0100 Subject: [PATCH 1/2] Highlight settings tab when annotation opacity is 0 Resolves https://github.com/biigle/core/issues/457 --- resources/assets/js/annotations/annotatorContainer.vue | 4 ++++ resources/views/annotations/show/tabs/settings.blade.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/annotations/annotatorContainer.vue b/resources/assets/js/annotations/annotatorContainer.vue index 880baa939..92dec9061 100644 --- a/resources/assets/js/annotations/annotatorContainer.vue +++ b/resources/assets/js/annotations/annotatorContainer.vue @@ -163,7 +163,11 @@ export default { }, annotationCount() { return this.annotations.length; + }, + highlightSettingsTab() { + return this.annotationOpacity === 0; } + }, methods: { getImageAndAnnotationsPromises(id) { diff --git a/resources/views/annotations/show/tabs/settings.blade.php b/resources/views/annotations/show/tabs/settings.blade.php index a9fece479..c474cf987 100644 --- a/resources/views/annotations/show/tabs/settings.blade.php +++ b/resources/views/annotations/show/tabs/settings.blade.php @@ -1,8 +1,8 @@ - +