logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 45d1a941535f0165b6e398a9e155f56e7ff3ead4
parent 1eb96182bba3684b7b71f5f74e9574aade3fdd39
Author: Henry Jameson <me@hjkos.com>
Date:   Tue, 14 Jan 2025 09:46:01 +0200

don't clear status on autosave

Diffstat:

Msrc/components/post_status_form/post_status_form.js6+++---
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 @@ -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 () {