Make debug log available from the installer

Move debug log from inbox view to app view so it can be opened regardless of
whether we are showing the inbox view or the installer.

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 04e40043d2
commit 11633d7d87
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -79,7 +79,7 @@
}
Whisper.events.on('showDebugLog', function() {
appView.inboxView.showDebugLog();
appView.openDebugLog();
});
Whisper.events.on('unauthorized', function() {
appView.inboxView.networkStatusView.update();

@ -18,6 +18,17 @@
this.el.append(view.el);
this.delegateEvents();
},
openDebugLog: function() {
this.closeDebugLog();
this.debugLogView = new Whisper.DebugLogView();
this.debugLogView.$el.appendTo(this.el);
},
closeDebugLog: function() {
if (this.debugLogView) {
this.debugLogView.remove();
this.debugLogView = null;
}
},
openInstaller: function() {
this.closeInstaller();
this.installView = new Whisper.InstallView();

Loading…
Cancel
Save