11<script lang="ts">
2- import { defineComponent , PropType } from " vue" ;
2+ import { computed , defineComponent , PropType } from " vue" ;
33import { SpectroInfo } from ' ./geoJS/geoJSUtils' ;
44import useState from " ../use/useState" ;
55import { watch , ref } from " vue" ;
@@ -32,7 +32,7 @@ export default defineComponent({
3232 },
3333 emits: [' select' , ' update:annotation' , ' delete:annotation' ],
3434 setup() {
35- const { creationType, annotationState, setAnnotationState, annotations, temporalAnnotations, selectedId, selectedType, setSelectedId, sideTab } = useState ();
35+ const { creationType, annotationState, setAnnotationState, annotations, temporalAnnotations, selectedId, selectedType, setSelectedId, sideTab, configuration } = useState ();
3636 const tab = ref (' recording' );
3737 const scrollToId = (id : number ) => {
3838 const el = document .getElementById (` annotation-${id } ` );
@@ -49,6 +49,8 @@ export default defineComponent({
4949 watch (selectedType , () => {
5050 tab .value = selectedType .value ;
5151 });
52+ const pulseEnabled = computed (() => configuration .value .display_pulse_annotations );
53+ const sequenceEnabled = computed (() => configuration .value .display_sequence_annotations );
5254 // eslint-disable-next-line @typescript-eslint/no-explicit-any
5355 const tabSwitch = (event : any ) => {
5456 // On tab switches we want to deselect the curret annotation
@@ -73,6 +75,8 @@ export default defineComponent({
7375 tabSwitch ,
7476 tab ,
7577 sideTab ,
78+ pulseEnabled ,
79+ sequenceEnabled ,
7680 };
7781 },
7882});
@@ -105,6 +109,7 @@ export default defineComponent({
105109 <span >Recording/File Level Species Annotations</span >
106110 </v-tooltip >
107111 <v-tooltip
112+ v-if =" sequenceEnabled"
108113 location =" bottom"
109114 open-delay =" 400"
110115 >
@@ -120,6 +125,7 @@ export default defineComponent({
120125 <span >Sequence Level annotations (Approach/Search/Terminal/Social)</span >
121126 </v-tooltip >
122127 <v-tooltip
128+ v-if =" pulseEnabled"
123129 location =" bottom"
124130 open-delay =" 400"
125131 >
0 commit comments