chore: minor fixes
This commit is contained in:
parent
7d4ba6249e
commit
49f3b928cb
5 changed files with 7 additions and 6 deletions
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue