fix(filters): changing filter checkbox values not being emitted to parent components

See https://community.vikunja.io/t/saved-filters-option-include-tasks-which-dont-have-a-value-set-is-still-set-after-saving-the-filter-despite-the-option-was-unselected/858
This commit is contained in:
kolaente 2022-09-30 21:06:26 +02:00
parent fd3c15d064
commit 13157e3bba
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<card class="filters has-overflow" :title="hasTitle ? $t('filters.title') : ''">
<div class="field">
<fancycheckbox v-model="params.filter_include_nulls">
<fancycheckbox v-model="params.filter_include_nulls" @change="change()">
{{ $t('filters.attributes.includeNulls') }}
</fancycheckbox>
<fancycheckbox
@ -16,6 +16,7 @@
<fancycheckbox
v-if="!$route.name.includes('list.kanban') || !$route.name.includes('list.table')"
v-model="sortAlphabetically"
@change="change()"
>
{{ $t('filters.attributes.sortAlphabetically') }}
</fancycheckbox>
@ -534,6 +535,7 @@ export default defineComponent({
} else {
this.params.filter_concat = 'or'
}
this.change()
},
setPriority() {
this.setSingleValueFilter('priority', 'priority', 'usePriority')