mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
fix(web(js)): position notifications to the bottom right
Fixes #5127 Fixes #5423
This commit is contained in:
@@ -163,7 +163,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Successfully subscribed to calendar'))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
});
|
||||
};
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
ComponentController.$inject = ['$rootScope', '$scope', '$q', '$mdDialog', 'Preferences', 'Calendar', 'Component', 'AddressBook', 'Account', 'stateComponent'];
|
||||
function ComponentController($rootScope, $scope, $q, $mdDialog, Preferences, Calendar, Component, AddressBook, Account, stateComponent) {
|
||||
ComponentController.$inject = ['$rootScope', '$scope', '$q', '$mdDialog', 'sgConstant', 'Preferences', 'Calendar', 'Component', 'AddressBook', 'Account', 'stateComponent'];
|
||||
function ComponentController($rootScope, $scope, $q, $mdDialog, sgConstant, Preferences, Calendar, Component, AddressBook, Account, stateComponent) {
|
||||
var vm = this, component;
|
||||
|
||||
this.$onInit = function () {
|
||||
@@ -424,7 +424,7 @@
|
||||
'</md-toast>'
|
||||
].join(''),
|
||||
hideDelay: 5000,
|
||||
position: 'top right'
|
||||
position: sgConstant.toastPosition
|
||||
});
|
||||
}).finally(function () {
|
||||
$timeout(scrollToStart);
|
||||
|
||||
@@ -340,7 +340,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(msg)
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
},
|
||||
onErrorItem: function(item, response, status, headers) {
|
||||
@@ -353,7 +353,7 @@
|
||||
' </div>',
|
||||
'</md-toast>'
|
||||
].join(''),
|
||||
position: 'top right',
|
||||
position: sgConstant.toastPosition,
|
||||
hideDelay: 3000
|
||||
});
|
||||
}
|
||||
@@ -377,7 +377,7 @@
|
||||
' </div>',
|
||||
'</md-toast>'
|
||||
].join(''),
|
||||
position: 'top right',
|
||||
position: sgConstant.toastPosition,
|
||||
hideDelay: 3000
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user