Total number of organization users added (#489)
This commit is contained in:
parent
5dfeee548d
commit
84dde72990
|
@ -5,6 +5,7 @@
|
|||
<button type="button" class="btn btn-outline-secondary" [ngClass]="{active: status == null}"
|
||||
(click)="filter(null)">
|
||||
{{'all' | i18n}}
|
||||
<span class="badge badge-pill badge-info" *ngIf="allCount">{{allCount}}</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary"
|
||||
[ngClass]="{active: status == organizationUserStatusType.Invited}"
|
||||
|
|
|
@ -121,6 +121,10 @@ export class PeopleComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
|
||||
get allCount() {
|
||||
return this.allUsers.length;
|
||||
}
|
||||
|
||||
get invitedCount() {
|
||||
return this.statusMap.has(OrganizationUserStatusType.Invited) ?
|
||||
this.statusMap.get(OrganizationUserStatusType.Invited).length : 0;
|
||||
|
|
Loading…
Reference in New Issue