mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-21 18:04:18 +00:00
fix(web(js)): remove calls to deprecated functions in ng-material
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
<md-menu>
|
||||
<md-button class="md-icon-button" aria-label="Sort"
|
||||
ng-click="$mdOpenMenu()">
|
||||
ng-click="$mdMenu.open()">
|
||||
<md-icon>sort</md-icon>
|
||||
</md-button>
|
||||
<md-menu-content>
|
||||
|
||||
@@ -260,7 +260,7 @@
|
||||
if (cards.length != allCards.length)
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l("Lists can't be moved or copied."))
|
||||
.textContent(l("Lists can't be moved or copied."))
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
$state.go('app.addressbook');
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(success)
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
});
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(msg)
|
||||
.textContent(msg)
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
},
|
||||
@@ -335,7 +335,7 @@
|
||||
AddressBook.$subscribe(addressbookData.owner, addressbookData.name).then(function(data) {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Successfully subscribed to address book'))
|
||||
.textContent(l('Successfully subscribed to address book'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
});
|
||||
@@ -363,7 +363,7 @@
|
||||
if (cards.length != allCards.length)
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l("Lists can't be moved or copied."))
|
||||
.textContent(l("Lists can't be moved or copied."))
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
|
||||
@@ -386,7 +386,7 @@
|
||||
$state.go('app.addressbook');
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(success)
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
});
|
||||
|
||||
@@ -486,7 +486,7 @@
|
||||
vm.selectedFolder.$copyMessages(selectedMessages, '/' + dstFolder).then(function() {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('%{0} message(s) copied', vm.selectedFolder.$selectedCount()))
|
||||
.textContent(l('%{0} message(s) copied', vm.selectedFolder.$selectedCount()))
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
});
|
||||
@@ -500,7 +500,7 @@
|
||||
vm.selectedFolder.$moveMessages(selectedMessages, '/' + dstFolder).then(function(index) {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('%{0} message(s) moved', count))
|
||||
.textContent(l('%{0} message(s) moved', count))
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
if (Mailbox.$virtualMode) {
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
// Show success toast when action succeeds
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Successfully created card'))
|
||||
.textContent(l('Successfully created card'))
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
});
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
onErrorItem: function(item, response, status, headers) {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Error while uploading the file \"%{0}\":', item.file.name) +
|
||||
.textContent(l('Error while uploading the file \"%{0}\":', item.file.name) +
|
||||
' ' + (response.message? l(response.message) : ''))
|
||||
.position('top right')
|
||||
.action(l('OK'))
|
||||
@@ -224,7 +224,7 @@
|
||||
}
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Your email has been saved'))
|
||||
.textContent(l('Your email has been saved'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
});
|
||||
@@ -255,7 +255,7 @@
|
||||
}
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Your email has been sent'))
|
||||
.textContent(l('Your email has been sent'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@
|
||||
if (!options || !options.quick) {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Preferences saved'))
|
||||
.textContent(l('Preferences saved'))
|
||||
.position('bottom right')
|
||||
.hideDelay(2000));
|
||||
form.$setPristine();
|
||||
@@ -489,7 +489,7 @@
|
||||
Authentication.changePassword(this.passwords.newPassword, this.passwords.oldPassword).then(function() {
|
||||
var alert = $mdDialog.alert({
|
||||
title: l('Password'),
|
||||
content: l('The password was changed successfully.'),
|
||||
textContent: l('The password was changed successfully.'),
|
||||
ok: l('OK')
|
||||
});
|
||||
$mdDialog.show( alert )
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
Calendar.$subscribe(calendarData.owner, calendarData.name).then(function(data) {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Successfully subscribed to calendar'))
|
||||
.textContent(l('Successfully subscribed to calendar'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
});
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(msg)
|
||||
.textContent(msg)
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user