chore: minor fixes

This commit is contained in:
Dominik Pschenitschni 2022-09-05 18:32:42 +02:00
parent 7d4ba6249e
commit 49f3b928cb
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
5 changed files with 7 additions and 6 deletions

View file

@ -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: {

View file

@ -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: {

View file

@ -15,7 +15,7 @@ import {AUTH_TYPES} from '@/store/types'
import type { IUserSettings } from '@/modelTypes/IUserSettings'
const defaultSettings = settings => {
function defaultSettings(settings: Partial<IUserSettings>) {
if (typeof settings.weekStart === 'undefined' || settings.weekStart === '') {
settings.weekStart = 0
}

View file

@ -222,11 +222,11 @@ const kanbanStore : Module<KanbanState, RootStoreState> = {
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)

View file

@ -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'