Fix populating task details ater updating the description
This commit is contained in:
parent
187a8f5933
commit
f4a4909ead
2 changed files with 4 additions and 3 deletions
|
@ -78,8 +78,9 @@ export default {
|
||||||
this.saving = true
|
this.saving = true
|
||||||
|
|
||||||
this.$store.dispatch('tasks/update', this.task)
|
this.$store.dispatch('tasks/update', this.task)
|
||||||
.then(() => {
|
.then(t => {
|
||||||
this.$emit('input', this.task)
|
this.task = t
|
||||||
|
this.$emit('input', t)
|
||||||
this.saved = true
|
this.saved = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.saved = false
|
this.saved = false
|
||||||
|
|
|
@ -610,7 +610,7 @@ export default {
|
||||||
|
|
||||||
this.$store.dispatch('tasks/update', this.task)
|
this.$store.dispatch('tasks/update', this.task)
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.$set(this, 'task', r)
|
this.task = r
|
||||||
this.setActiveFields()
|
this.setActiveFields()
|
||||||
|
|
||||||
if (!showNotification) {
|
if (!showNotification) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue