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:
parent
3f5505907f
commit
e4e41140c4
7 changed files with 111 additions and 115 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue