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

This commit is contained in:
Henry Jameson 2022-06-22 00:34:22 +03:00
parent 872db65fd8
commit a0ddfa499f
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,13 @@ const StatusPopover = {
.catch(e => (this.error = true))
}
}
},
watch: {
status (newStatus, oldStatus) {
if (newStatus !== oldStatus) {
this.$refs.popover.updateStyles()
}
}
}
}

View File

@ -4,6 +4,7 @@
popover-class="popover-default status-popover"
:bound-to="{ x: 'container' }"
@show="enter"
ref="popover"
>
<template v-slot:trigger>
<slot />