chore: use const for default params

This commit is contained in:
kolaente 2021-11-02 20:27:37 +01:00
parent fe41d34bab
commit 7207c452f3
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 9 additions and 9 deletions

View File

@ -1,17 +1,17 @@
import TaskCollectionService from '@/services/taskCollection'
// FIXME: merge with DEFAULT_PARAMS in filters.vue
export const defaultParams = () => {
return {
sort_by: ['position', 'id'],
order_by: ['asc', 'desc'],
filter_by: ['done'],
filter_value: ['false'],
filter_comparator: ['equals'],
filter_concat: 'and',
}
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 getDefaultParams = () => ({...DEFAULT_PARAMS})
/**
* This mixin provides a base set of methods and properties to get tasks on a list.
*/