1
0

feat: function attribute typing

This commit is contained in:
Dominik Pschenitschni
2022-06-23 03:20:07 +02:00
parent 8fb00653e4
commit 332acf012c
17 changed files with 48 additions and 41 deletions

View File

@ -453,6 +453,7 @@ import {uploadFile} from '@/helpers/attachments'
import ChecklistSummary from '../../components/tasks/partials/checklist-summary.vue'
import CreatedUpdated from '@/components/tasks/partials/createdUpdated.vue'
import { setTitle } from '@/helpers/setTitle'
import type ListModel from '@/models/list'
function scrollIntoView(el) {
if (!el) {
@ -592,7 +593,7 @@ export default defineComponent({
return uploadFile(this.taskId, ...args)
},
async loadTask(taskId) {
async loadTask(taskId: TaskModel['id']) {
if (taskId === undefined) {
return
}
@ -698,7 +699,7 @@ export default defineComponent({
this.saveTask(true, this.toggleTaskDone)
},
async changeList(list) {
async changeList(list: ListModel) {
this.$store.commit('kanban/removeTaskInBucket', this.task)
this.task.listId = list.id
await this.saveTask()