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: a18854a30d5a687ee3a2a028aa2a7e1b73b5597c
parent f61f224bb1cae9c57f07345057064d165279d36a
Author: Henry Jameson <me@hjkos.com>
Date:   Tue,  7 Jan 2025 17:23:24 +0200

separate draft hiding from draft disable, fixes #1350

Diffstat:

Msrc/components/draft/draft.vue4++--
Msrc/components/post_status_form/post_status_form.js1+
Msrc/components/post_status_form/post_status_form.vue4++--
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/components/draft/draft.vue b/src/components/draft/draft.vue @@ -64,12 +64,12 @@ <div v-if="editing"> <PostStatusForm v-if="draft.type !== 'edit'" - :disable-draft="true" + :hide-draft="true" v-bind="postStatusFormProps" /> <EditStatusForm v-else - :disable-draft="true" + :hide-draft="true" :params="postStatusFormProps" /> </div> diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -101,6 +101,7 @@ const PostStatusForm = { 'disableSubmit', 'disablePreview', 'disableDraft', + 'hideDraft', 'placeholder', 'maxHeight', 'postHandler', diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue @@ -316,7 +316,7 @@ </template> </button> <Popover - v-if="!disableDraft" + v-if="!hideDraft" class="more-post-actions" :normal-button="true" trigger="click" @@ -336,7 +336,7 @@ role="menu" > <button - v-if="!disableDraft" + v-if="!hideDraft" class="menu-item dropdown-item dropdown-item-icon" role="menu" :disabled="!safeToSaveDraft"