diff --git a/src/components/ui/FetchedTags.vue b/src/components/ui/FetchedTags.vue index 6e159087c..7f153f1ac 100644 --- a/src/components/ui/FetchedTags.vue +++ b/src/components/ui/FetchedTags.vue @@ -30,7 +30,10 @@ const tags = computed(() => { const n = tag.split(`${$props.tag}`)[1]; const key = `${$props.tag}${n}`; const value = `${$props.value}${n}`; - acc[$props.item[key] ?? key] = $props.item[value] ?? ''; + const val = $props.item[value] ?? ''; + const match = $props.item[`match${n}`] ?? ''; + const style = match ? 'color:green' : ''; + acc[$props.item[key] ?? key] = { val, style, match }; return acc; }, {}); }); @@ -48,15 +51,18 @@ const columnStyle = computed(() => {