1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-18 08:23:38 +00:00

display fixes

This commit is contained in:
Kyle Spearrin
2018-05-08 15:36:31 -04:00
parent 445c3f220a
commit 95b595d5bf

View File

@@ -132,26 +132,25 @@ export class DashboardComponent implements OnInit, OnDestroy {
}
}
if (userMap.size > 0) {
this.sort(this.simGroups);
for (const g of this.simGroups) {
if (g.userMemberExternalIds == null) {
continue;
}
const anyG = (g as any);
anyG.users = [];
for (const uid of g.userMemberExternalIds) {
if (userMap.has(uid)) {
anyG.users.push(userMap.get(uid));
} else {
anyG.users.push(uid);
}
}
this.sort(anyG.users);
this.sort(this.simGroups);
for (const g of this.simGroups) {
if (g.userMemberExternalIds == null) {
continue;
}
const anyG = (g as any);
anyG.users = [];
for (const uid of g.userMemberExternalIds) {
if (userMap.has(uid)) {
anyG.users.push(userMap.get(uid));
} else {
anyG.users.push({ displayName: uid });
}
}
this.sort(anyG.users);
}
resolve();
});
}