Use sgSearch directive in Webmail module

This commit is contained in:
Francis Lachapelle committed 2015-06-12 11:22:45 -04:00
1 parent 01d4134a23
commit db9e3a5401
3 files changed
+49 -16

No files matched your search

+2 -2
View File
@@ -89,7 +89,7 @@
return _find(stateAccount.$mailboxes);
}],
stateMessages: ['stateMailbox', function(stateMailbox) {
return stateMailbox.$reload();
return stateMailbox.$filter();
}]
}
})
@@ -235,7 +235,7 @@
.controller('MailboxCtrl', ['$scope', '$rootScope', '$stateParams', 'stateAccount', 'stateMailbox', '$timeout', 'sgFocus', 'sgDialog', 'sgAccount', 'sgMailbox', function($scope, $rootScope, $stateParams, stateAccount, stateMailbox, $timeout, focus, Dialog, Account, Mailbox) {
$scope.account = stateAccount;
$scope.mailbox = stateMailbox;
$rootScope.mailbox = stateMailbox;
$rootScope.currentFolder = stateMailbox;
$timeout(function() {
$rootScope.$broadcast('sgSelectFolder', stateMailbox.id);