forked from vikunja/frontend
chore: simplify using only some filter values
This commit is contained in:
parent
86efb07f09
commit
c4b9bc5942
|
@ -53,19 +53,10 @@ export default {
|
||||||
},
|
},
|
||||||
hasFilters() {
|
hasFilters() {
|
||||||
// this.value also contains the page parameter which we don't want to include in filters
|
// this.value also contains the page parameter which we don't want to include in filters
|
||||||
const {sort_by, order_by, filter_by, filter_value, filter_comparator, filter_concat, s} = this.value
|
const {page, ...value} = this.value
|
||||||
const filterParams = {
|
const def = {...getDefaultParams()}
|
||||||
sort_by,
|
|
||||||
order_by,
|
|
||||||
filter_by,
|
|
||||||
filter_value,
|
|
||||||
filter_comparator,
|
|
||||||
filter_concat,
|
|
||||||
s: s ?? null,
|
|
||||||
}
|
|
||||||
const def = {...getDefaultParams(), s: null}
|
|
||||||
|
|
||||||
return JSON.stringify(filterParams) !== JSON.stringify(def)
|
return JSON.stringify(value) !== JSON.stringify(def)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user