From 58467cd5af675d104932a9f67ffcf5fd6c80c3c9 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sat, 8 Apr 2023 15:03:33 +0300 Subject: [PATCH] show info popup buttons on hover --- ui/src/data_cells/components/data_cell.vue | 6 +++ ui/src/data_cells/components/reference.vue | 35 ++++++++++++++- ui/src/data_cells/components/tag.vue | 45 +++++++++++++++++-- .../data_tables/components/table_column.vue | 1 + 4 files changed, 83 insertions(+), 4 deletions(-) diff --git a/ui/src/data_cells/components/data_cell.vue b/ui/src/data_cells/components/data_cell.vue index d230e8c0..63f850a4 100644 --- a/ui/src/data_cells/components/data_cell.vue +++ b/ui/src/data_cells/components/data_cell.vue @@ -43,6 +43,7 @@ ref="cell" :value="value" :format="format" + :with-filter-button="isTable" @tag-click="$emit('tag-click', $event)" /> ({}) }, + isTable: { + type: Boolean, + required: false, + default: false + }, textTruncate: { type: Boolean, required: false, diff --git a/ui/src/data_cells/components/reference.vue b/ui/src/data_cells/components/reference.vue index 4a91c869..c821106b 100644 --- a/ui/src/data_cells/components/reference.vue +++ b/ui/src/data_cells/components/reference.vue @@ -1,10 +1,10 @@
{{ options[value] || titleize(value.toString()) }} + + +
@@ -59,6 +71,11 @@ export default { type: Object, required: false, default: () => ({}) + }, + withFilterButton: { + type: Boolean, + required: false, + default: false } }, emits: ['tag-click'], @@ -93,5 +110,27 @@ export default { } - diff --git a/ui/src/data_tables/components/table_column.vue b/ui/src/data_tables/components/table_column.vue index 51f0f3ae..2eb69e18 100644 --- a/ui/src/data_tables/components/table_column.vue +++ b/ui/src/data_tables/components/table_column.vue @@ -47,6 +47,7 @@ v-else :value="row[column.key]" :format="column.format" + :is-table="true" :type="column.type" @tag-click="$emit('tag-click', { key: column.key, value: $event })" />