From 1ed565985a69cd76c89557e72c5e0a27314eb2ba Mon Sep 17 00:00:00 2001 From: kodaline Date: Tue, 22 Oct 2024 20:04:22 +0200 Subject: [PATCH] add: display doc metadata added a simple element "hide/show metadata" to show the metadata for each doc element. It shows the metadata of the selected doc related to issue #103 --- src/components/MemorySelect.vue | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/components/MemorySelect.vue b/src/components/MemorySelect.vue index 0527f37..c0e9deb 100644 --- a/src/components/MemorySelect.vue +++ b/src/components/MemorySelect.vue @@ -4,6 +4,11 @@ defineProps<{ }>() const selectedCollection = ref('episodic') +let showMeta = ref(false) +let selectedItem = ref('') +const showMetadata = (id: string) => { + selectedItem.value = selectedItem.value === id ? '' : id; +}