diff --git a/client/src/App.vue b/client/src/App.vue index 5f2bedb..6eaeec7 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,17 +1,27 @@ @@ -42,9 +64,9 @@ export default defineComponent({ Recordings + + Spectrogram + + + + +
+ Name:{{ nextShared.name }} +
+
+ Owner:{{ nextShared.owner_username }} +
+
+
{{ loginText }} diff --git a/client/src/components/AnnotationList.vue b/client/src/components/AnnotationList.vue index 88224ce..a814662 100644 --- a/client/src/components/AnnotationList.vue +++ b/client/src/components/AnnotationList.vue @@ -3,10 +3,12 @@ import { defineComponent, PropType } from "vue"; import { SpectroInfo } from './geoJS/geoJSUtils'; import useState from "../use/useState"; import { watch, ref } from "vue"; +import RecordingList from "./RecordingList.vue"; export default defineComponent({ name: "AnnotationList", components: { + RecordingList, }, props: { spectroInfo: { @@ -36,9 +38,13 @@ export default defineComponent({ // eslint-disable-next-line @typescript-eslint/no-explicit-any const tabSwitch = (event: any) => { // On tab switches we want to deselect the curret anntation - tab.value = event as 'sequence' | 'pulse'; - selectedType.value = event as 'sequence' | 'pulse'; - selectedId.value = null; + if (['sequence', 'pulse'].includes(event)) { + tab.value = event as 'sequence' | 'pulse'; + selectedType.value = event as 'sequence' | 'pulse'; + selectedId.value = null; + } else { + tab.value = 'recordings'; + } }; return { @@ -60,20 +66,38 @@ export default defineComponent({