(js) Don't try to select "noselect" mailbox

pull/218/merge
Francis Lachapelle 2017-11-23 14:03:22 -05:00
parent 7874b0a74c
commit 1d90aa748d
1 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@
this.$onInit = function() {
this.$element = $element;
this.service = Mailbox;
this.editMode = false;
this.accountController.addMailboxController(this);
};
@ -84,7 +83,7 @@
this.selectFolder = function($event) {
if (this.editMode || this.mailbox == Mailbox.selectedFolder)
if (this.editMode || this.mailbox == Mailbox.selectedFolder || this.mailbox.isNoSelect())
return;
Mailbox.$virtualPath = false;
Mailbox.$virtualMode = false;