diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue
index 54b1524f9d..0bc566262e 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue
@@ -2,7 +2,7 @@
+ :class="{ 'with-children': hasChildren, collapsed: isCollapsed, blink: justUpdated }">
@@ -95,7 +96,13 @@ export default {
// Propagate the collapsed state to the wrapped component if applicable
if (this.instance)
this.instance.collapsed = !this.instance.collapsed
- }
+ },
+
+ setJustUpdated() {
+ this.justUpdated = true
+ const self = this;
+ setTimeout(() => self.justUpdated = false, 1000)
+ },
},
mounted() {
@@ -110,9 +117,8 @@ export default {
if (this.valuesEqual(oldValue, newValue))
return false
- this.justUpdated = true
- const self = this;
- setTimeout(() => self.justUpdated = false, 1000)
+ this.setJustUpdated()
+ this.$emit('update', {value: newValue})
}
)