mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-31 03:07:17 +00:00
fix(web(js)): position notifications to the bottom right
Fixes #5127 Fixes #5423
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
MailboxController.$inject = ['$window', '$scope', '$timeout', '$q', '$state', '$mdDialog', '$mdToast', 'stateAccounts', 'stateAccount', 'stateMailbox', 'sgHotkeys', 'encodeUriFilter', 'sgSettings', 'sgFocus', 'Dialog', 'Preferences', 'Account', 'Mailbox'];
|
||||
function MailboxController($window, $scope, $timeout, $q, $state, $mdDialog, $mdToast, stateAccounts, stateAccount, stateMailbox, sgHotkeys, encodeUriFilter, sgSettings, focus, Dialog, Preferences, Account, Mailbox) {
|
||||
MailboxController.$inject = ['$window', '$scope', '$timeout', '$q', '$state', '$mdDialog', '$mdToast', 'stateAccounts', 'stateAccount', 'stateMailbox', 'sgHotkeys', 'encodeUriFilter', 'sgConstant', 'sgSettings', 'sgFocus', 'Dialog', 'Preferences', 'Account', 'Mailbox'];
|
||||
function MailboxController($window, $scope, $timeout, $q, $state, $mdDialog, $mdToast, stateAccounts, stateAccount, stateMailbox, sgHotkeys, encodeUriFilter, sgConstant, sgSettings, focus, Dialog, Preferences, Account, Mailbox) {
|
||||
var vm = this,
|
||||
defaultWindowTitle = angular.element($window.document).find('title').attr('sg-default') || "SOGo",
|
||||
hotkeys = [],
|
||||
@@ -490,7 +490,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('%{0} message(s) copied', vm.selectedFolder.selectedCount()))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
});
|
||||
};
|
||||
@@ -504,7 +504,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('%{0} message(s) moved', count))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
if (Mailbox.$virtualMode) {
|
||||
// When performing an advanced search, we refresh the view if the selected message
|
||||
|
||||
@@ -299,7 +299,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
});
|
||||
};
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Successfully created card'))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
MessageEditorController.$inject = ['$scope', '$window', '$stateParams', '$mdConstant', '$mdUtil', '$mdDialog', '$mdToast', 'FileUploader', 'stateParent', 'stateAccount', 'stateMessage', 'onCompletePromise', 'encodeUriFilter', '$timeout', 'sgFocus', 'Dialog', 'AddressBook', 'Card', 'Preferences'];
|
||||
function MessageEditorController($scope, $window, $stateParams, $mdConstant, $mdUtil, $mdDialog, $mdToast, FileUploader, stateParent, stateAccount, stateMessage, onCompletePromise, encodeUriFilter, $timeout, focus, Dialog, AddressBook, Card, Preferences) {
|
||||
MessageEditorController.$inject = ['$scope', '$window', '$stateParams', '$mdConstant', '$mdUtil', '$mdDialog', '$mdToast', 'FileUploader', 'stateParent', 'stateAccount', 'stateMessage', 'onCompletePromise', 'encodeUriFilter', '$timeout', 'sgConstant', 'sgFocus', 'Dialog', 'AddressBook', 'Card', 'Preferences'];
|
||||
function MessageEditorController($scope, $window, $stateParams, $mdConstant, $mdUtil, $mdDialog, $mdToast, FileUploader, stateParent, stateAccount, stateMessage, onCompletePromise, encodeUriFilter, $timeout, sgConstant, focus, Dialog, AddressBook, Card, Preferences) {
|
||||
var vm = this;
|
||||
|
||||
this.$onInit = function() {
|
||||
@@ -150,7 +150,7 @@
|
||||
$mdToast.simple()
|
||||
.textContent(l('Error while uploading the file \"%{0}\":', item.file.name) +
|
||||
' ' + (response.message? l(response.message) : ''))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.action(l('OK'))
|
||||
.hideDelay(false));
|
||||
this.removeFromQueue(item);
|
||||
@@ -227,7 +227,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Your email has been saved'))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
}
|
||||
});
|
||||
@@ -259,7 +259,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Your email has been sent'))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
|
||||
// Let the user see the succesfull message before closing the dialog
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Folder compacted'))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
});
|
||||
};
|
||||
@@ -273,7 +273,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(successMsg)
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user