From 442f74fce0ec40f5567d26e1b82f9abac43ecabe Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 16 Jan 2025 07:02:13 +0100 Subject: [PATCH] feat: refs #6321 tags --- src/components/ui/FetchedTags.vue | 16 ++-- src/pages/Item/components/ItemProposal.vue | 80 +++++++------------ .../Item/components/ItemProposalProxy.vue | 5 +- 3 files changed, 44 insertions(+), 57 deletions(-) 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(() => {