Refactor app view

Introduce a top level view for navigating between the inbox and the
installer, enabling an in-window relink flow. Navigation is driven
through the openInbox and openInstaller global events.

// FREEBIE
This commit is contained in:
lilia
2017-04-12 14:20:56 -07:00
committed by Scott Nonnenberg
parent 3f5505907f
commit e4e41140c4
7 changed files with 111 additions and 115 deletions

View File

@@ -26,7 +26,10 @@
this.listenTo(this.model, 'change', this.onChange);
},
events: {
'click .openInstaller': extension.install
'click .openInstaller': 'openInstaller'
},
openInstaller: function() {
Whisper.events.trigger('openInstaller');
},
onReconnectTimer: function() {
this.setSocketReconnectInterval(60000);