don't do this with autosave turned on
This commit is contained in:
parent
c0875ee34e
commit
dad461f407
1 changed files with 6 additions and 2 deletions
|
@ -769,7 +769,9 @@ const PostStatusForm = {
|
||||||
}
|
}
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
this.clearStatus()
|
this.clearStatus()
|
||||||
this.$emit('draft-done')
|
if (!this.shouldAutoSaveDraft) {
|
||||||
|
this.$emit('draft-done')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else if (this.newStatus.id) {
|
} else if (this.newStatus.id) {
|
||||||
// There is a draft, but there is nothing in it, clear it
|
// There is a draft, but there is nothing in it, clear it
|
||||||
|
@ -777,7 +779,9 @@ const PostStatusForm = {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
this.clearStatus()
|
this.clearStatus()
|
||||||
this.$emit('draft-done')
|
if (!this.shouldAutoSaveDraft) {
|
||||||
|
this.$emit('draft-done')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue