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
No known key found for this signature in database
GPG key ID: A4931C09644C654B
7 changed files with 111 additions and 115 deletions

View file

@ -167,22 +167,8 @@
};
}
extension.install = function(mode) {
if (mode === 'standalone') {
return; // TODO
}
var installView = new Whisper.InstallView({
el: $('body').empty()
});
if (Whisper.Registration.everDone()) {
installView.selectStep(3);
installView.hideDots();
}
installView.$el.show();
Whisper.events.once('contactsync', function() {
openInbox();
installView.remove();
});
extension.install = function() {
Whisper.events.trigger('openInstaller');
};
var notification_pending = Promise.resolve();