From 1059bf75a7db5c9fc446b7bcc9802c404650ecbb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 14 Feb 2025 10:27:19 +0100 Subject: [PATCH] fix: show descriptors when click on it --- src/components/VnTable/VnTable.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 185d41ebb..6e5f9fef4 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -304,6 +304,10 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { } } } + +function cardClick(_, row) { + if ($props.redirect) router.push({ path: `/${$props.redirect}/${row.id}` }); +}