Do not filter out app mailboxes

This commit is contained in:
Girish Ramakrishnan
2018-12-06 10:28:42 -08:00
parent 92cb768c4b
commit 7fa5ef8165
3 changed files with 6 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.client = Client;
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
$scope.apps = Client.getInstalledApps();
$scope.domains = [];
$scope.users = [];
$scope.selectedDomain = null;
@@ -364,6 +365,8 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.mailboxes.mailboxes = mailboxes.map(function (m) {
m.aliases = aliases.filter(function (a) { return a.aliasTarget === m.name; }).map(function (a) { return a.name; }).join(',');
m.owner = $scope.users.find(function (u) { return u.id === m.ownerId; });
m.ownerDisplayName = m.owner.display; // this meta property is set when we get the user list
return m;
});
@@ -630,6 +633,8 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
return u;
});
$scope.users = users;
Client.getDomains(function (error, domains) {
if (error) return console.error('Unable to get domain listing.', error);