Add divider for users and groups
This commit is contained in:
@@ -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' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user