fix(web(js)): remove calls to deprecated functions in ng-material

pull/273/head
Francis Lachapelle 2020-08-04 16:16:09 -04:00
parent cd95649f08
commit 1cb9a83f6f
2 changed files with 5 additions and 4 deletions

View File

@ -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));
});

View File

@ -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));
});