fix(web(js)): remove calls to deprecated functions in ng-material
parent
cd95649f08
commit
1cb9a83f6f
|
@ -301,8 +301,9 @@
|
|||
Account.$$resource.post('', 'unseenCount', {mailboxes: unseenCountFolders}).then(function(data) {
|
||||
_.forEach(vm.accounts, function(account) {
|
||||
_.forEach(account.$$flattenMailboxes, function(mailbox) {
|
||||
if (data[mailbox.id])
|
||||
if (data[mailbox.id]) {
|
||||
mailbox.unseenCount = data[mailbox.id];
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -340,7 +341,7 @@
|
|||
$state.go('mail.account.mailbox');
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(success)
|
||||
.textContent(success)
|
||||
.position('top right')
|
||||
.hideDelay(2000));
|
||||
});
|
||||
|
|
|
@ -249,7 +249,7 @@
|
|||
this.folder.$compact().then(function() {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Folder compacted'))
|
||||
.textContent(l('Folder compacted'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
});
|
||||
|
@ -259,7 +259,7 @@
|
|||
this.folder.$emptyTrash().then(function() {
|
||||
$mdToast.show(
|
||||
$mdToast.simple()
|
||||
.content(l('Trash emptied'))
|
||||
.textContent(l('Trash emptied'))
|
||||
.position('top right')
|
||||
.hideDelay(3000));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue