mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +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:
@@ -5306,5 +5306,8 @@
|
|||||||
},
|
},
|
||||||
"cardBrandMir": {
|
"cardBrandMir": {
|
||||||
"message": "Mir"
|
"message": "Mir"
|
||||||
|
},
|
||||||
|
"numberOfUsers": {
|
||||||
|
"message": "Number of users"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,14 @@
|
|||||||
[infiniteScrollDisabled]="!isPaging()"
|
[infiniteScrollDisabled]="!isPaging()"
|
||||||
(scrolled)="loadMore()"
|
(scrolled)="loadMore()"
|
||||||
>
|
>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2">{{ "name" | i18n }}</th>
|
||||||
|
<th>{{ "numberOfUsers" | i18n }}</th>
|
||||||
|
<th>{{ "billingPlan" | i18n }}</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let o of searchedClients">
|
<tr *ngFor="let o of searchedClients">
|
||||||
<td width="30">
|
<td width="30">
|
||||||
@@ -61,6 +69,13 @@
|
|||||||
<td>
|
<td>
|
||||||
<a [routerLink]="['/organizations', o.organizationId]">{{ o.organizationName }}</a>
|
<a [routerLink]="['/organizations', o.organizationId]">{{ o.organizationName }}</a>
|
||||||
</td>
|
</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">
|
<td class="table-list-options" *ngIf="manageOrganizations">
|
||||||
<div class="dropdown" appListDropdown>
|
<div class="dropdown" appListDropdown>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ export class ProviderOrganizationResponse extends BaseResponse {
|
|||||||
settings: string;
|
settings: string;
|
||||||
creationDate: string;
|
creationDate: string;
|
||||||
revisionDate: string;
|
revisionDate: string;
|
||||||
|
userCount: number;
|
||||||
|
seats?: number;
|
||||||
|
plan?: string;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
@@ -18,6 +21,9 @@ export class ProviderOrganizationResponse extends BaseResponse {
|
|||||||
this.settings = this.getResponseProperty("Settings");
|
this.settings = this.getResponseProperty("Settings");
|
||||||
this.creationDate = this.getResponseProperty("CreationDate");
|
this.creationDate = this.getResponseProperty("CreationDate");
|
||||||
this.revisionDate = this.getResponseProperty("RevisionDate");
|
this.revisionDate = this.getResponseProperty("RevisionDate");
|
||||||
|
this.userCount = this.getResponseProperty("UserCount");
|
||||||
|
this.seats = this.getResponseProperty("Seats");
|
||||||
|
this.plan = this.getResponseProperty("Plan");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user