chore: only use factory function

This commit is contained in:
kolaente 2021-10-31 16:31:19 +01:00
parent f3d338c857
commit 0d752c9d32
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 10 deletions

View File

@ -1,15 +1,6 @@
import TaskCollectionService from '@/services/taskCollection'
// FIXME: merge with DEFAULT_PARAMS in filters.vue
export const DEFAULT_PARAMS = {
sort_by: ['position', 'id'],
order_by: ['asc', 'desc'],
filter_by: ['done'],
filter_value: ['false'],
filter_comparator: ['equals'],
filter_concat: 'and',
}
export const defaultParams = () => {
return {
sort_by: ['position', 'id'],
@ -37,7 +28,7 @@ export default {
searchTerm: '',
showTaskFilter: false,
params: {...DEFAULT_PARAMS},
params: {...defaultParams()},
}
},
watch: {