mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 03:15:25 +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
|
||||
*/
|
||||
AddressBookController.$inject = ['$scope', '$q', '$window', '$state', '$timeout', '$mdDialog', '$mdToast', 'Account', 'Card', 'AddressBook', 'sgFocus', 'Dialog', 'sgSettings', 'sgHotkeys', 'stateAddressbooks', 'stateAddressbook'];
|
||||
function AddressBookController($scope, $q, $window, $state, $timeout, $mdDialog, $mdToast, Account, Card, AddressBook, focus, Dialog, Settings, sgHotkeys, stateAddressbooks, stateAddressbook) {
|
||||
AddressBookController.$inject = ['$scope', '$q', '$window', '$state', '$timeout', '$mdDialog', '$mdToast', 'Account', 'Card', 'AddressBook', 'sgFocus', 'Dialog', 'sgConstant', 'sgHotkeys', 'stateAddressbooks', 'stateAddressbook'];
|
||||
function AddressBookController($scope, $q, $window, $state, $timeout, $mdDialog, $mdToast, Account, Card, AddressBook, focus, Dialog, sgConstant, sgHotkeys, stateAddressbooks, stateAddressbook) {
|
||||
var vm = this, hotkeys = [], sortLabels;
|
||||
|
||||
sortLabels = {
|
||||
@@ -261,7 +261,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l("Lists can't be moved or copied."))
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
|
||||
if (cards.length) {
|
||||
@@ -284,7 +284,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(2000));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(msg)
|
||||
.position('top right')
|
||||
.position(sgConstant.toastPosition)
|
||||
.hideDelay(3000));
|
||||
},
|
||||
onErrorItem: function(item, response, status, headers) {
|
||||
@@ -201,7 +201,7 @@
|
||||
' </div>',
|
||||
'</md-toast>'
|
||||
].join(''),
|
||||
position: 'top right',
|
||||
position: Settings.toastPosition,
|
||||
hideDelay: 3000
|
||||
});
|
||||
}
|
||||
@@ -225,7 +225,7 @@
|
||||
' </div>',
|
||||
'</md-toast>'
|
||||
].join(''),
|
||||
position: 'top right',
|
||||
position: Settings.toastPosition,
|
||||
hideDelay: 3000
|
||||
});
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l('Successfully subscribed to address book'))
|
||||
.position('top right')
|
||||
.position(Settings.toastPosition)
|
||||
.hideDelay(3000));
|
||||
});
|
||||
};
|
||||
@@ -364,7 +364,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(l("Lists can't be moved or copied."))
|
||||
.position('top right')
|
||||
.position(Settings.toastPosition)
|
||||
.hideDelay(2000));
|
||||
|
||||
if (cards.length) {
|
||||
@@ -387,7 +387,7 @@
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.position(Settings.toastPosition)
|
||||
.hideDelay(2000));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user