From 0adec5b9b53462e8b7752160a01763b59d7b1796 Mon Sep 17 00:00:00 2001
From: paulpestov <10750176+paulpestov@users.noreply.github.com>
Date: Mon, 17 Jun 2024 14:01:38 +0200
Subject: [PATCH] fix: update metadata display
---
.../workflows/timeline/TimelineItem.vue | 4 +-
.../timeline/TimelineItemMetadata.vue | 120 ++++++++++--------
2 files changed, 70 insertions(+), 54 deletions(-)
diff --git a/src/components/workflows/timeline/TimelineItem.vue b/src/components/workflows/timeline/TimelineItem.vue
index 84c5fd0..f2e655b 100644
--- a/src/components/workflows/timeline/TimelineItem.vue
+++ b/src/components/workflows/timeline/TimelineItem.vue
@@ -91,9 +91,7 @@ function toggleParameterOverlay(step: WorkflowStep, event: Event) {
/>
-
-
-
+
diff --git a/src/components/workflows/timeline/TimelineItemMetadata.vue b/src/components/workflows/timeline/TimelineItemMetadata.vue
index f480e36..3ce5bd7 100644
--- a/src/components/workflows/timeline/TimelineItemMetadata.vue
+++ b/src/components/workflows/timeline/TimelineItemMetadata.vue
@@ -14,6 +14,11 @@ const props = defineProps<{
}>()
const opLabelling = ref()
+const opVolume = ref()
+const volumeMetadata = {
+ label: t('volume'),
+ data: props.gtMetadata.volume,
+}
const metadata = [
{
@@ -43,70 +48,83 @@ const metadata = [
href: 'url',
isLink: true,
isArray: true,
- },
- {
- label: t('volume'),
- data: props.gtMetadata.volume,
- isDict: true,
- }
+ }
]
function toggleOpLabelling(event: any) {
opLabelling.value?.toggle(event)
}
+function toggleOpVolume(event: any) {
+ opVolume.value?.toggle(event)
+}
+
-
-
-
-
{{ meta.label }}:
-
-
-
-
-
-
- {{ label }}
-
-
-
- {{ $t('no_labels_for_this_entry') }}
-
-
-
+
+
+
+
+
+
+
+
+ {{ label }}
+
+
+
+ {{ $t('no_labels_for_this_entry') }}
+
+
+
+
+
+
+
+
{{ key }}
+
{{ value }}
+
+
+
+
+