Initial work for muliple selections + new toolbar with ops

This commit is contained in:
Ludovic Marcotte
2015-06-12 12:02:16 -04:00
committed by Francis Lachapelle
parent 499e66ffe9
commit 7d54bd5e86
9 changed files with 95 additions and 19 deletions
@@ -23,11 +23,11 @@
};
$scope.doDelete = function() {
stateMailbox.$deleteMessages([stateMessage.uid]).then(function() {
// Remove card from list of addressbook
// Remove message from list of messages
stateMailbox.$messages = _.reject(stateMailbox.$messages, function(o) {
return o.uid == stateMessage.uid;
});
// Remove card object from scope
// Remove message object from scope
$rootScope.message = null;
$state.go('mail.account.mailbox', { accountId: stateAccount.id, mailboxId: encodeUriFilter(stateMailbox.path) });
});