Fix #2125 Prevent multiple settings modals

This commit is contained in:
Navdeep Singh 2018-03-22 17:54:42 -07:00 committed by Scott Nonnenberg
parent d520ba3b38
commit 1a117e3f78
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@
window.location.reload();
},
showSettings() {
if (this.$el.find('.settings').length) {
return;
}
const view = new Whisper.SettingsView();
view.$el.appendTo(this.el);
},