mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user