Add divider for users and groups

This commit is contained in:
Girish Ramakrishnan
2020-11-13 13:09:59 -08:00
parent 9ac5889262
commit 7f3732d43c
2 changed files with 3 additions and 1 deletions

View File

@@ -763,6 +763,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
if (error) return console.error('Unable to get user listing.', error);
// ensure we have a display value available
$scope.owners.push({ header: true, display: 'Users' });
users.forEach(function (u) {
$scope.owners.push({ display: u.username || u.email, id: u.id, type: 'user' });
});
@@ -770,6 +771,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
Client.getGroups(function (error, groups) {
if (error) return console.error('Unable to get group listing.', error);
$scope.owners.push({ header: true, display: 'Groups' });
groups.forEach(function (g) {
$scope.owners.push({ display: g.name, id: g.id, type: 'group' });
});