don't clear status on autosave

This commit is contained in:
Henry Jameson 2025-01-14 09:46:01 +02:00
parent 1eb96182bb
commit 45d1a94153

View file

@ -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 () {