diff --git a/changelog.d/draft-save.fix b/changelog.d/draft-save.fix new file mode 100644 index 000000000..7e3097e04 --- /dev/null +++ b/changelog.d/draft-save.fix @@ -0,0 +1 @@ +Fix draft saving when auto-save is off diff --git a/changelog.d/post-more-actions-label.fix b/changelog.d/post-more-actions-label.fix new file mode 100644 index 000000000..c3441d10a --- /dev/null +++ b/changelog.d/post-more-actions-label.fix @@ -0,0 +1 @@ +Add text label for more actions button in post status form diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index f9eb1bdcd..87c88d8f7 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -376,6 +376,14 @@ const PostStatusForm = { this.newStatus.hasPoll ) && this.saveable }, + hasEmptyDraft () { + return this.newStatus.id && !( + this.newStatus.status || + this.newStatus.spoilerText || + this.newStatus.files?.length || + this.newStatus.hasPoll + ) + }, ...mapGetters(['mergedConfig']), ...mapState(useInterfaceStore, { mobileLayout: store => store.mobileLayout @@ -784,7 +792,7 @@ const PostStatusForm = { this.$emit('draft-done') } }) - } else if (this.newStatus.id) { + } else if (this.hasEmptyDraft) { // There is a draft, but there is nothing in it, clear it return this.abandonDraft() .then(() => { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 260a89cb7..303413b55 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -322,6 +322,7 @@ trigger="click" placement="bottom" :offset="{ y: 5 }" + :trigger-attrs="{ 'aria-label': $t('post_status.more_post_actions') }" >