1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

show message that users needs to be confirmed

This commit is contained in:
Kyle Spearrin
2018-08-06 17:18:33 -04:00
parent c37359cdfd
commit 226aa0b3ba
3 changed files with 68 additions and 48 deletions

View File

@@ -228,6 +228,15 @@ export class PeopleComponent implements OnInit {
});
}
get showConfirmUsers(): boolean {
return this.allUsers != null && this.allUsers.length > 1 &&
this.statusMap.has(OrganizationUserStatusType.Confirmed) &&
this.statusMap.get(OrganizationUserStatusType.Confirmed).length > 0 &&
this.statusMap.get(OrganizationUserStatusType.Confirmed).length < 3 &&
this.statusMap.has(OrganizationUserStatusType.Accepted) &&
this.statusMap.get(OrganizationUserStatusType.Accepted).length > 0;
}
private async doConfirmation(user: OrganizationUserUserDetailsResponse) {
const orgKey = await this.cryptoService.getOrgKey(this.organizationId);
const publicKeyResponse = await this.apiService.getUserPublicKey(user.userId);