Merge branch 'dev' into 7553_FixTicketExpedition
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2024-09-06 12:00:41 +00:00
commit 04f4521a59
1 changed files with 12 additions and 37 deletions

View File

@ -132,17 +132,6 @@ async function search(evt) {
} }
} }
async function reload() {
isLoading.value = true;
const params = Object.values(userParams.value).filter((param) => param);
store.skip = 0;
store.page = 1;
await arrayData.fetch({ append: false });
if (!$props.showAll && !params.length) store.data = [];
isLoading.value = false;
emit('refresh');
}
async function clearFilters() { async function clearFilters() {
try { try {
isLoading.value = true; isLoading.value = true;
@ -231,32 +220,18 @@ function sanitizer(params) {
</QItemLabel> </QItemLabel>
</QItemSection> </QItemSection>
<QItemSection top side> <QItemSection top side>
<div class="q-gutter-xs"> <QBtn
<QBtn @click="clearFilters"
@click="clearFilters" color="primary"
color="primary" dense
dense flat
flat icon="filter_list_off"
icon="filter_list_off" padding="none"
padding="none" round
round size="sm"
size="sm" >
> <QTooltip>{{ t('Remove filters') }}</QTooltip>
<QTooltip>{{ t('Remove filters') }}</QTooltip> </QBtn>
</QBtn>
<QBtn
@click="reload"
color="primary"
dense
flat
icon="refresh"
padding="none"
round
size="sm"
>
<QTooltip>{{ t('Refresh') }}</QTooltip>
</QBtn>
</div>
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem class="q-mb-sm"> <QItem class="q-mb-sm">