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" >