From 7ce880239ec3ce16313d93bfefa657c499bbfb29 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 27 Oct 2022 15:47:48 +0200 Subject: [PATCH] feat: rename useTaskList --- src/components/list/partials/filter-popup.vue | 2 +- src/components/list/partials/filters.vue | 2 +- src/composables/{taskList.ts => useTaskList.ts} | 0 src/views/list/ListList.vue | 2 +- src/views/list/ListTable.vue | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/composables/{taskList.ts => useTaskList.ts} (100%) diff --git a/src/components/list/partials/filter-popup.vue b/src/components/list/partials/filter-popup.vue index 20d57ca58..30cc98cab 100644 --- a/src/components/list/partials/filter-popup.vue +++ b/src/components/list/partials/filter-popup.vue @@ -34,7 +34,7 @@ import {computed, ref, watch} from 'vue' import Filters from '@/components/list/partials/filters.vue' -import {getDefaultParams} from '@/composables/taskList' +import {getDefaultParams} from '@/composables/useTaskList' const props = defineProps({ modelValue: { diff --git a/src/components/list/partials/filters.vue b/src/components/list/partials/filters.vue index d9a0a46e2..073af33f3 100644 --- a/src/components/list/partials/filters.vue +++ b/src/components/list/partials/filters.vue @@ -212,7 +212,7 @@ import EditLabels from '@/components/tasks/partials/editLabels.vue' import {dateIsValid, formatISO} from '@/helpers/time/formatDate' import {objectToSnakeCase} from '@/helpers/case' -import {getDefaultParams} from '@/composables/taskList' +import {getDefaultParams} from '@/composables/useTaskList' import {camelCase} from 'camel-case' // FIXME: merge with DEFAULT_PARAMS in taskList.js diff --git a/src/composables/taskList.ts b/src/composables/useTaskList.ts similarity index 100% rename from src/composables/taskList.ts rename to src/composables/useTaskList.ts diff --git a/src/views/list/ListList.vue b/src/views/list/ListList.vue index 057563f6b..7eb5a260d 100644 --- a/src/views/list/ListList.vue +++ b/src/views/list/ListList.vue @@ -154,7 +154,7 @@ import Nothing from '@/components/misc/nothing.vue' import Pagination from '@/components/misc/pagination.vue' import {ALPHABETICAL_SORT} from '@/components/list/partials/filters.vue' -import {useTaskList} from '@/composables/taskList' +import {useTaskList} from '@/composables/useTaskList' import {RIGHTS as Rights} from '@/constants/rights' import {calculateItemPosition} from '@/helpers/calculateItemPosition' import type {ITask} from '@/modelTypes/ITask' diff --git a/src/views/list/ListTable.vue b/src/views/list/ListTable.vue index ff388dc2e..50f0e3804 100644 --- a/src/views/list/ListTable.vue +++ b/src/views/list/ListTable.vue @@ -196,7 +196,7 @@ import FilterPopup from '@/components/list/partials/filter-popup.vue' import Pagination from '@/components/misc/pagination.vue' import Popup from '@/components/misc/popup.vue' -import {useTaskList} from '@/composables/taskList' +import {useTaskList} from '@/composables/useTaskList' import type {ITask} from '@/modelTypes/ITask' const ACTIVE_COLUMNS_DEFAULT = {