mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-30 10:47:17 +00:00
feat(web): support desktop notifications, add global inbox polling
Fixes #1234, fixes #3382, fixes #4295
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
});
|
||||
};
|
||||
|
||||
this.onDesktopNotificationsChange = function() {
|
||||
if (this.preferences.defaults.SOGoDesktopNotifications)
|
||||
this.preferences.authorizeNotifications();
|
||||
};
|
||||
|
||||
this.resetContactsCategories = function(form) {
|
||||
this.preferences.defaults.SOGoContactsCategories = $window.defaultContactsCategories;
|
||||
form.$setDirty();
|
||||
@@ -466,7 +471,9 @@
|
||||
if (this.passwords.newPasswordConfirmation && this.passwords.newPasswordConfirmation.length &&
|
||||
this.passwords.newPassword != this.passwords.newPasswordConfirmation) {
|
||||
form.newPasswordConfirmation.$setValidity('newPasswordMismatch', false);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
form.newPasswordConfirmation.$setValidity('newPasswordMismatch', true);
|
||||
}
|
||||
if (this.passwords.newPassword && this.passwords.newPassword.length > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user