Skip to content

Commit 986f177

Browse files
committed
Layerviewer: show doc/job name
1 parent 07c0e72 commit 986f177

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/src/components/tables/LayerViewer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<GTable :columns :items>
3-
<template #title>Annotations preview</template>
3+
<template #title>Annotations preview of {{ name }}</template>
44
<template #header>
55
<dl>
66
<dl v-for="[key, value] in Object.entries(summary.annotations)" :key="key">
@@ -20,6 +20,7 @@ import type { Job } from "@/types/jobs"
2020
const { document, job } = defineProps<{ document?: DocumentMetadata; job?: Job }>()
2121
2222
// #computed
23+
const name = computed(() => (document ? document.name : job?.tagger.id))
2324
const summary = computed(() => (document ? document.summary : job.summary))
2425
const annotations = computed(() => (document ? document.annotations : job.tagger.annotations))
2526
const columns = computed(() => annotations.value.map((i) => ({ key: i, label: i })))

0 commit comments

Comments
 (0)