logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: a0ddfa499fe45e352e8c3920cba862a4902f0afe
parent 872db65fd86aaa605789383e629321e32447a997
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 22 Jun 2022 00:34:22 +0300

update status popover when its content changes (only status reference)

Diffstat:

Msrc/components/status_popover/status_popover.js7+++++++
Msrc/components/status_popover/status_popover.vue1+
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js @@ -38,6 +38,13 @@ const StatusPopover = { .catch(e => (this.error = true)) } } + }, + watch: { + status (newStatus, oldStatus) { + if (newStatus !== oldStatus) { + this.$refs.popover.updateStyles() + } + } } } diff --git a/src/components/status_popover/status_popover.vue b/src/components/status_popover/status_popover.vue @@ -4,6 +4,7 @@ popover-class="popover-default status-popover" :bound-to="{ x: 'container' }" @show="enter" + ref="popover" > <template v-slot:trigger> <slot />