mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Total number of organization users added (#489)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<button type="button" class="btn btn-outline-secondary" [ngClass]="{active: status == null}"
|
<button type="button" class="btn btn-outline-secondary" [ngClass]="{active: status == null}"
|
||||||
(click)="filter(null)">
|
(click)="filter(null)">
|
||||||
{{'all' | i18n}}
|
{{'all' | i18n}}
|
||||||
|
<span class="badge badge-pill badge-info" *ngIf="allCount">{{allCount}}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-outline-secondary"
|
<button type="button" class="btn btn-outline-secondary"
|
||||||
[ngClass]="{active: status == organizationUserStatusType.Invited}"
|
[ngClass]="{active: status == organizationUserStatusType.Invited}"
|
||||||
|
|||||||
@@ -121,6 +121,10 @@ export class PeopleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get allCount() {
|
||||||
|
return this.allUsers.length;
|
||||||
|
}
|
||||||
|
|
||||||
get invitedCount() {
|
get invitedCount() {
|
||||||
return this.statusMap.has(OrganizationUserStatusType.Invited) ?
|
return this.statusMap.has(OrganizationUserStatusType.Invited) ?
|
||||||
this.statusMap.get(OrganizationUserStatusType.Invited).length : 0;
|
this.statusMap.get(OrganizationUserStatusType.Invited).length : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user