From a0ddfa499fe45e352e8c3920cba862a4902f0afe Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 22 Jun 2022 00:34:22 +0300 Subject: [PATCH] update status popover when its content changes (only status reference) --- src/components/status_popover/status_popover.js | 7 +++++++ src/components/status_popover/status_popover.vue | 1 + 2 files changed, 8 insertions(+) diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js index e0962ccdf2..68878a50b5 100644 --- 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 index b6a3be3240..2c436d04cb 100644 --- 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" >