Skip to content

Commit

Permalink
Merge pull request #1009 from biigle/devIssue457
Browse files Browse the repository at this point in the history
Highlight settings tab when annotation opacity is 0
  • Loading branch information
mzur authored Jan 10, 2025
2 parents c5cd757 + 87b00f9 commit 25aea72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resources/assets/js/annotations/annotatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ export default {
},
annotationCount() {
return this.annotations.length;
},
highlightSettingsTab() {
return this.annotationOpacity === 0;
}
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/annotations/show/tabs/settings.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<sidebar-tab name="settings" icon="cog" title="Settings">
<sidebar-tab name="settings" icon="cog" title="Settings" :highlight="highlightSettingsTab">
<settings-tab v-cloak :image="image" v-on:change="handleSettingsChange" inline-template>
<div class="annotator-tab">
<div class="sidebar-tab__section">
Expand Down

0 comments on commit 25aea72

Please sign in to comment.