[mastertask] complete mastertask

This commit is contained in:
romankko2 committed 2023-09-07 20:38:15 +02:00
1 parent d44f9e4358
commit 1cfdf1b044
3 files changed
+20 -6

No files matched your search

@@ -22,7 +22,7 @@ import modalMixin from '@/plugins/tm@modal/_mixins/modal.mixin'
export default {
mixins: [ modalMixin ],
emits: ['close', 'on-master-task-edited'],
emits: ['close', 'master-task-edited'],
data() {
return {
@@ -43,7 +43,8 @@ export default {
const { mastertask } = await this.$axios.put_auth(`v1/mastertasks/${tempMastertask.id}`, tempMastertask)
this.visible = false
this.$emit('on-master-task-edited', mastertask)
this.$emit('master-task-edited', mastertask)
this.$events.emit('close-both-modals')
} catch (error) {
this.$toast.error(error)
}