From 49f3b928cbc16031cf65fa3ed1cc908968e1083b Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 5 Sep 2022 18:32:42 +0200 Subject: [PATCH] chore: minor fixes --- src/components/tasks/partials/editAssignees.vue | 2 +- src/components/tasks/partials/editLabels.vue | 3 ++- src/store/modules/auth.ts | 2 +- src/store/modules/kanban.ts | 4 ++-- src/views/list/settings/duplicate.vue | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/tasks/partials/editAssignees.vue b/src/components/tasks/partials/editAssignees.vue index 226e8016..bb21fd57 100644 --- a/src/components/tasks/partials/editAssignees.vue +++ b/src/components/tasks/partials/editAssignees.vue @@ -39,7 +39,7 @@ import BaseButton from '@/components/base/BaseButton.vue' import {includesById} from '@/helpers/utils' import ListUserService from '@/services/listUsers' import {success} from '@/message' -import type { IUser } from '@/models/user' +import type { IUser } from '@/modelTypes/IUser' const props = defineProps({ taskId: { diff --git a/src/components/tasks/partials/editLabels.vue b/src/components/tasks/partials/editLabels.vue index 9a96ed56..ae99693f 100644 --- a/src/components/tasks/partials/editLabels.vue +++ b/src/components/tasks/partials/editLabels.vue @@ -43,12 +43,13 @@ import {type PropType, ref, computed, shallowReactive, watch} from 'vue' import {useStore} from '@/store' import {useI18n} from 'vue-i18n' -import LabelModel, { type ILabel } from '@/models/label' +import LabelModel from '@/models/label' import LabelTaskService from '@/services/labelTask' import {success} from '@/message' import BaseButton from '@/components/base/BaseButton.vue' import Multiselect from '@/components/input/multiselect.vue' +import type { ILabel } from '@/modelTypes/ILabel' const props = defineProps({ modelValue: { diff --git a/src/store/modules/auth.ts b/src/store/modules/auth.ts index c101381c..2e624910 100644 --- a/src/store/modules/auth.ts +++ b/src/store/modules/auth.ts @@ -15,7 +15,7 @@ import {AUTH_TYPES} from '@/store/types' import type { IUserSettings } from '@/modelTypes/IUserSettings' -const defaultSettings = settings => { +function defaultSettings(settings: Partial) { if (typeof settings.weekStart === 'undefined' || settings.weekStart === '') { settings.weekStart = 0 } diff --git a/src/store/modules/kanban.ts b/src/store/modules/kanban.ts index 19412130..0f302eb0 100644 --- a/src/store/modules/kanban.ts +++ b/src/store/modules/kanban.ts @@ -222,11 +222,11 @@ const kanbanStore : Module = { getters: { getBucketById(state) { - return (bucketId) => findById(state.buckets, bucketId) + return (bucketId: IBucket['id']) => findById(state.buckets, bucketId) }, getTaskById(state) { - return (id) => { + return (id: ITask['id']) => { const { bucketIndex, taskIndex } = getTaskIndicesById(state, id) diff --git a/src/views/list/settings/duplicate.vue b/src/views/list/settings/duplicate.vue index 2cfe5c52..0752a78e 100644 --- a/src/views/list/settings/duplicate.vue +++ b/src/views/list/settings/duplicate.vue @@ -30,7 +30,7 @@ import CreateEdit from '@/components/misc/create-edit.vue' import Multiselect from '@/components/input/multiselect.vue' import ListDuplicateModel from '@/models/listDuplicateModel' -import type {INamespace} from '@/models/namespace' +import type {INamespace} from '@/modelTypes/INamespace' import {success} from '@/message' import {useTitle} from '@/composables/useTitle'