1
0

feature/remove-attachment-upload-mixin (#724)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/724
Reviewed-by: konrad <k@knt.li>
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen
2021-09-24 18:16:37 +00:00
committed by konrad
parent 4f2378ff02
commit 41331c8a86
7 changed files with 54 additions and 59 deletions

View File

@ -436,13 +436,14 @@ import Comments from '../../components/tasks/partials/comments'
import ListSearch from '../../components/tasks/partials/listSearch'
import description from '@/components/tasks/partials/description.vue'
import ColorPicker from '../../components/input/colorPicker'
import attachmentUpload from '../../components/tasks/mixins/attachmentUpload'
import heading from '@/components/tasks/partials/heading.vue'
import Datepicker from '@/components/input/datepicker.vue'
import {playPop} from '@/helpers/playPop'
import TaskSubscription from '@/components/misc/subscription.vue'
import {CURRENT_LIST} from '@/store/mutation-types'
import {uploadFile} from '@/helpers/attachments'
export default {
name: 'TaskDetailView',
components: {
@ -462,9 +463,6 @@ export default {
description,
heading,
},
mixins: [
attachmentUpload,
],
data() {
return {
taskId: Number(this.$route.params.id),
@ -552,6 +550,10 @@ export default {
},
},
methods: {
attachmentUpload(...args) {
return uploadFile(this.taskId, ...args)
},
loadTask() {
this.taskId = Number(this.$route.params.id)
this.taskService.get({id: this.taskId})