File tree Expand file tree Collapse file tree
client/src/components/tables Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
2020const { document, job } = defineProps <{ document? : DocumentMetadata ; job? : Job }>()
2121
2222// #computed
23+ const name = computed (() => (document ? document .name : job ?.tagger .id ))
2324const summary = computed (() => (document ? document .summary : job .summary ))
2425const annotations = computed (() => (document ? document .annotations : job .tagger .annotations ))
2526const columns = computed (() => annotations .value .map ((i ) => ({ key: i , label: i })))
You can’t perform that action at this time.
0 commit comments