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
This commit is contained in:
lilia
2017-07-24 17:09:26 +02:00
committed by Scott Nonnenberg
parent 04e40043d2
commit 11633d7d87
2 changed files with 12 additions and 1 deletions

View File

@@ -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();