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: dad461f4078db3d9d47986b28d7ae1ea518c30ad
parent c0875ee34e2ab70d6fc12ddb3559e4181353d6ea
Author: Henry Jameson <me@hjkos.com>
Date:   Wed,  8 Jan 2025 21:41:31 +0200

don't do this with autosave turned on

Diffstat:

Msrc/components/post_status_form/post_status_form.js8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -769,7 +769,9 @@ const PostStatusForm = { } this.saveable = false this.clearStatus() - this.$emit('draft-done') + if (!this.shouldAutoSaveDraft) { + this.$emit('draft-done') + } }) } else if (this.newStatus.id) { // There is a draft, but there is nothing in it, clear it @@ -777,7 +779,9 @@ const PostStatusForm = { .then(() => { this.saveable = false this.clearStatus() - this.$emit('draft-done') + if (!this.shouldAutoSaveDraft) { + this.$emit('draft-done') + } }) } }