1
0

fix(filters): rework filter popup button

This commit is contained in:
kolaente
2024-03-13 17:19:15 +01:00
parent 79577c14b7
commit 15215b30a0
6 changed files with 232 additions and 290 deletions

View File

@ -1,11 +1,4 @@
<template>
<x-button
v-if="hasFilters"
variant="secondary"
@click="clearFilters"
>
{{ $t('filters.clear') }}
</x-button>
<x-button
variant="secondary"
icon="filter"

View File

@ -25,6 +25,13 @@
v-if="hasFooter"
#footer
>
<x-button
variant="secondary"
@click.prevent.stop="clearFiltersAndEmit"
class="mr-2"
>
{{ $t('filters.clear') }}
</x-button>
<x-button
variant="primary"
@click.prevent.stop="changeAndEmitButton"
@ -130,4 +137,9 @@ function changeAndEmitButton() {
change()
emit('showResultsButtonClicked')
}
function clearFiltersAndEmit() {
params.value.filter = ''
changeAndEmitButton()
}
</script>