mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 06:49:35 +00:00
[mastertask] complete mastertask
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user