diff --git a/platypush/backend/http/webapp/src/Events.vue b/platypush/backend/http/webapp/src/Events.vue index 9162b0c4d..19226c11d 100644 --- a/platypush/backend/http/webapp/src/Events.vue +++ b/platypush/backend/http/webapp/src/Events.vue @@ -181,6 +181,11 @@ export default { created() { bus.on('subscribe', this.subscribe) bus.on('unsubscribe', this.unsubscribe) + + this.$watch('opened', (open) => { + bus.emit(open ? 'connect' : 'disconnect') + }) + this.init() }, } diff --git a/platypush/backend/http/webapp/src/components/Nav.vue b/platypush/backend/http/webapp/src/components/Nav.vue index 9d32ab51e..ebdee6913 100644 --- a/platypush/backend/http/webapp/src/components/Nav.vue +++ b/platypush/backend/http/webapp/src/components/Nav.vue @@ -3,6 +3,9 @@
+