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

View File

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