diff --git a/platypush/backend/http/webapp/src/Events.vue b/platypush/backend/http/webapp/src/Events.vue index 9162b0c4..19226c11 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 9d32ab51..ebdee691 100644 --- a/platypush/backend/http/webapp/src/components/Nav.vue +++ b/platypush/backend/http/webapp/src/components/Nav.vue @@ -3,6 +3,9 @@
+