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:
parent
04e40043d2
commit
11633d7d87
2 changed files with 12 additions and 1 deletions
|
@ -79,7 +79,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
Whisper.events.on('showDebugLog', function() {
|
Whisper.events.on('showDebugLog', function() {
|
||||||
appView.inboxView.showDebugLog();
|
appView.openDebugLog();
|
||||||
});
|
});
|
||||||
Whisper.events.on('unauthorized', function() {
|
Whisper.events.on('unauthorized', function() {
|
||||||
appView.inboxView.networkStatusView.update();
|
appView.inboxView.networkStatusView.update();
|
||||||
|
|
|
@ -18,6 +18,17 @@
|
||||||
this.el.append(view.el);
|
this.el.append(view.el);
|
||||||
this.delegateEvents();
|
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() {
|
openInstaller: function() {
|
||||||
this.closeInstaller();
|
this.closeInstaller();
|
||||||
this.installView = new Whisper.InstallView();
|
this.installView = new Whisper.InstallView();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue