(js) Prefix title with unseen messages count

Fixes #4553
This commit is contained in:
Francis Lachapelle
2018-09-24 11:28:52 -04:00
parent 78c1244975
commit 74df75e5d5
2 changed files with 4 additions and 1 deletions

View File

@@ -46,10 +46,11 @@
// Update window's title with unseen messages count of selected mailbox
$scope.$watch(function() { return vm.selectedFolder.unseenCount; }, function(unseenCount) {
var title = defaultWindowTitle + ' - ';
var title = '';
if (unseenCount)
title += '(' + unseenCount + ') ';
title += vm.selectedFolder.$displayName;
title += ' | ' + defaultWindowTitle;
$window.document.title = title;
});
};