(js) Prefix title with unseen messages count

Fixes #4553
pull/229/merge
Francis Lachapelle 2018-09-24 11:28:52 -04:00
parent 78c1244975
commit 74df75e5d5
2 changed files with 4 additions and 1 deletions

2
NEWS
View File

@ -5,6 +5,7 @@ Enhancements
- [web] prohibit subscribing a user with no rights
- [web] new button to mark a task as completed (#4531)
- [web] new button to reset Calendar categories to defaults
- [web] moved the unseen messages count to the beginning of the window's title (#4553)
Bug fixes
- [web] include mail account name in form validation (#4532)
@ -17,6 +18,7 @@ Bug fixes
- [web] fixed popup window detection in message viewer (#4518)
- [web] fixed behaviour of return receipt actions
- [web] fixed freebusy information with all-day events
- [web] fixed support for SOGoMaximumMessageSizeLimit
- [core] fixed email reminders support for tasks
- [core] fixed time conflict validation (#4539)

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;
});
};