mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
fix(mail(js)): reset mailboxes state when leaving global search
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
_.forEach(hotkeys, function(key) {
|
||||
sgHotkeys.deregisterHotkey(key);
|
||||
});
|
||||
if (vm.mode.search) {
|
||||
vm.mode.search = false;
|
||||
vm.selectedFolder.$reset({ filter: true });
|
||||
}
|
||||
});
|
||||
|
||||
// Update window's title with unseen messages count of selected mailbox
|
||||
@@ -53,13 +57,6 @@
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user