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: ca8e3cea8d1c852075105e7e1eac3161349f53f2
parent f944a08f25404dc0d75f066127f989b5722e6f6b
Author: Henry Jameson <me@hjkos.com>
Date:   Sat, 18 Jan 2025 21:44:56 +0200

stop editing pins on popover close

Diffstat:

Msrc/components/status_action_buttons/status_action_buttons.js3+++
Msrc/components/status_action_buttons/status_action_buttons.vue3+--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/status_action_buttons/status_action_buttons.js b/src/components/status_action_buttons/status_action_buttons.js @@ -105,6 +105,9 @@ const StatusActionButtons = { .catch(err => this.$emit('onError', err.error.error)) .finally(() => setTimeout(() => { this.animationState[button.name] = false })) }, + onExtraClose () { + this.showPin = false + }, isPinned (button) { return this.pinnedItems.has(button.name) }, diff --git a/src/components/status_action_buttons/status_action_buttons.vue b/src/components/status_action_buttons/status_action_buttons.vue @@ -42,8 +42,7 @@ placement="top" :offset="{ y: 5 }" remove-padding - @show="onShow" - @close="onClose" + @close="onExtraClose" > <template #trigger> <FAIcon