Initial work for muliple selections + new toolbar with ops

This commit is contained in:
Ludovic Marcotte authored and Francis Lachapelle committed 2015-06-12 12:02:16 -04:00
1 parent 499e66ffe9
commit 7d54bd5e86
9 files changed
+95 -19

No files matched your search

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