fix: add unremovableParams to VnFilterPanel for better filtering control
gitea/salix-front/pipeline/pr-master This commit is unstable Details

This commit is contained in:
Alex Moreno 2025-04-14 08:38:16 +02:00
parent 6976569c42
commit 6acd2e9e9f
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,11 @@ const groupedStates = ref([]);
auto-load auto-load
/> />
<FetchData url="Warehouses" @on-fetch="(data) => (warehouses = data)" auto-load /> <FetchData url="Warehouses" @on-fetch="(data) => (warehouses = data)" auto-load />
<VnFilterPanel :data-key="props.dataKey" :search-button="true"> <VnFilterPanel
:data-key="props.dataKey"
:search-button="true"
:unremovableParams="['from', 'to']"
>
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">
<div class="q-gutter-x-xs"> <div class="q-gutter-x-xs">
<strong>{{ t(`params.${tag.label}`) }}: </strong> <strong>{{ t(`params.${tag.label}`) }}: </strong>