From 45d1a941535f0165b6e398a9e155f56e7ff3ead4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 14 Jan 2025 09:46:01 +0200 Subject: [PATCH] don't clear status on autosave --- src/components/post_status_form/post_status_form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index d6735319d..d5be3fe89 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -768,8 +768,8 @@ const PostStatusForm = { this.newStatus.id = id } this.saveable = false - this.clearStatus() if (!this.shouldAutoSaveDraft) { + this.clearStatus() this.$emit('draft-done') } }) @@ -778,8 +778,8 @@ const PostStatusForm = { return this.abandonDraft() .then(() => { this.saveable = false - this.clearStatus() if (!this.shouldAutoSaveDraft) { + this.clearStatus() this.$emit('draft-done') } }) @@ -789,7 +789,7 @@ const PostStatusForm = { }, maybeAutoSaveDraft () { if (this.shouldAutoSaveDraft) { - this.saveDraft() + this.saveDraft(false) } }, abandonDraft () {