From 7940d1702b65b82806121b72a573a24aa1a00a48 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 9 Aug 2023 10:39:37 +0200 Subject: [PATCH] refs #5987 refactor descriptors and VnLv --- src/components/ui/CardDescriptor.vue | 2 +- src/components/ui/VnLv.vue | 10 ++++++---- src/pages/Ticket/Card/TicketDescriptor.vue | 8 +------- src/pages/Ticket/TicketList.vue | 6 +----- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index afdc2d108..70109c15d 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -125,7 +125,7 @@ watch($props, async () => { - #{{ $props.subtitle ? $props.subtitle : entity.id }} + #{{ $props.subtitle ?? entity.id }} diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue index 83234b658..1eea26252 100644 --- a/src/components/ui/VnLv.vue +++ b/src/components/ui/VnLv.vue @@ -13,7 +13,9 @@ const isBooleanValue = computed(() => typeof $props.value === 'boolean');