0
0
Fork 0

feat(VnLogFilter): refs #8449 add showTagChips prop to control visibility of tag chips

This commit is contained in:
Alex Moreno 2025-03-26 09:22:58 +01:00
parent 421b68a031
commit f78cd7c9bf
2 changed files with 12 additions and 2 deletions

View File

@ -101,6 +101,7 @@ function getActions() {
:hiddenTags="['originFk', 'creationDate']"
:exprBuilder
search-url="logs"
:showTagChips="false"
>
<template #filter-changedModelValue="{ params, columnName, searchFn }">
<VnInput

View File

@ -61,6 +61,10 @@ const $props = defineProps({
type: Object,
default: null,
},
showTagChips: {
type: Boolean,
default: true,
},
});
const emit = defineEmits([
@ -218,7 +222,12 @@ const getLocale = (label) => {
<QList dense>
<QItem class="q-mt-xs">
<QItemSection top>
<QItemLabel header lines="1" class="text-uppercase q-py-xs q-px-none">
<QItemLabel
header
lines="1"
class="text-uppercase q-py-xs q-px-none"
v-if="showTagChips"
>
{{ t('Applied filters') }}
</QItemLabel>
</QItemSection>
@ -237,7 +246,7 @@ const getLocale = (label) => {
</QBtn>
</QItemSection>
</QItem>
<QItem class="q-mb-sm">
<QItem class="q-mb-sm" v-if="showTagChips">
<div
v-if="tagsList.length === 0"
class="text-grey font-xs text-center full-width"