1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

[EC-247] Add columns to provider portal clients table (#3147)

* Added properties "userCount", "seats" and "plan" to ProviderOrganizationResponse

* Added text message "numberOfUsers"

* Updated provider clients component with new columns

* Removed never used dependency

* Changed userCount to non nullable number

* Added condition on the component to only show seats number if not null

* Changed view condition to an explicit check
This commit is contained in:
Rui Tomé
2022-07-28 09:31:57 +01:00
committed by GitHub
parent 2c9ccefa12
commit da341e1317
3 changed files with 24 additions and 0 deletions

View File

@@ -48,6 +48,14 @@
[infiniteScrollDisabled]="!isPaging()"
(scrolled)="loadMore()"
>
<thead>
<tr>
<th colspan="2">{{ "name" | i18n }}</th>
<th>{{ "numberOfUsers" | i18n }}</th>
<th>{{ "billingPlan" | i18n }}</th>
<th></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let o of searchedClients">
<td width="30">
@@ -61,6 +69,13 @@
<td>
<a [routerLink]="['/organizations', o.organizationId]">{{ o.organizationName }}</a>
</td>
<td>
<span>{{ o.userCount }}</span>
<span *ngIf="o.seats != null"> / {{ o.seats }}</span>
</td>
<td>
<span>{{ o.plan }}</span>
</td>
<td class="table-list-options" *ngIf="manageOrganizations">
<div class="dropdown" appListDropdown>
<button