fix post status form "eating" posts
This commit is contained in:
parent
9a7afc5688
commit
15c5f9e4eb
1 changed files with 3 additions and 0 deletions
|
|
@ -690,6 +690,7 @@ const PostStatusForm = {
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.abandonDraft()
|
this.abandonDraft()
|
||||||
this.clearStatus()
|
this.clearStatus()
|
||||||
|
this.updateIdempotencyKey()
|
||||||
this.$emit('posted', data)
|
this.$emit('posted', data)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
@ -1007,6 +1008,7 @@ const PostStatusForm = {
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
if (!this.shouldAutoSaveDraft) {
|
if (!this.shouldAutoSaveDraft) {
|
||||||
this.clearStatus()
|
this.clearStatus()
|
||||||
|
this.updateIdempotencyKey()
|
||||||
this.$emit('draft-done')
|
this.$emit('draft-done')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -1016,6 +1018,7 @@ const PostStatusForm = {
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
if (!this.shouldAutoSaveDraft) {
|
if (!this.shouldAutoSaveDraft) {
|
||||||
this.clearStatus()
|
this.clearStatus()
|
||||||
|
this.updateIdempotencyKey()
|
||||||
this.$emit('draft-done')
|
this.$emit('draft-done')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue