don't clear status on autosave
This commit is contained in:
parent
1eb96182bb
commit
45d1a94153
1 changed files with 3 additions and 3 deletions
|
@ -768,8 +768,8 @@ const PostStatusForm = {
|
||||||
this.newStatus.id = id
|
this.newStatus.id = id
|
||||||
}
|
}
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
this.clearStatus()
|
|
||||||
if (!this.shouldAutoSaveDraft) {
|
if (!this.shouldAutoSaveDraft) {
|
||||||
|
this.clearStatus()
|
||||||
this.$emit('draft-done')
|
this.$emit('draft-done')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -778,8 +778,8 @@ const PostStatusForm = {
|
||||||
return this.abandonDraft()
|
return this.abandonDraft()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.saveable = false
|
this.saveable = false
|
||||||
this.clearStatus()
|
|
||||||
if (!this.shouldAutoSaveDraft) {
|
if (!this.shouldAutoSaveDraft) {
|
||||||
|
this.clearStatus()
|
||||||
this.$emit('draft-done')
|
this.$emit('draft-done')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -789,7 +789,7 @@ const PostStatusForm = {
|
||||||
},
|
},
|
||||||
maybeAutoSaveDraft () {
|
maybeAutoSaveDraft () {
|
||||||
if (this.shouldAutoSaveDraft) {
|
if (this.shouldAutoSaveDraft) {
|
||||||
this.saveDraft()
|
this.saveDraft(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
abandonDraft () {
|
abandonDraft () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue