fix(mail(js)): force search when restoring mailbox during navigation

This commit is contained in:
Francis Lachapelle committed 2021-10-14 14:32:16 -04:00
1 parent fa68c864f1
commit 0eb452c412
3 files changed
+14 -3

No files matched your search

@@ -53,8 +53,14 @@
title += ' | ' + defaultWindowTitle;
$window.document.title = title;
});
};
$scope.$on('$destroy', function() {
if (vm.mode.search) {
vm.mode.search = false;
vm.selectedFolder.$reset({ filter: true });
}
});
};
function _registerHotkeys(keys) {
keys.push(sgHotkeys.createHotkey({