forked from platypush/platypush
Re-sync the list of entities when the entities component is mounted
This commit is contained in:
parent
f760d44224
commit
5aa3750807
1 changed files with 3 additions and 2 deletions
|
@ -277,7 +277,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.subscribe(
|
this.subscribe(
|
||||||
this.onEntityUpdate,
|
this.onEntityUpdate,
|
||||||
'on-entity-update',
|
'on-entity-update',
|
||||||
|
@ -290,7 +290,8 @@ export default {
|
||||||
'platypush.message.event.entities.EntityDeleteEvent'
|
'platypush.message.event.entities.EntityDeleteEvent'
|
||||||
)
|
)
|
||||||
|
|
||||||
this.sync()
|
await this.sync()
|
||||||
|
await this.refresh()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue