Skip to content

Commit 0715597

Browse files
[PM-21603]Invite Member sub text seat count does not account for sponsorships (#14954)
* Resolve the membership count * Get the occupied Seat count from metadata
1 parent c48e4be commit 0715597

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/web/src/app/admin-console/organizations/members/members.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
110110
protected rowHeight = 69;
111111
protected rowHeightClass = `tw-h-[69px]`;
112112

113+
private organizationUsersCount = 0;
114+
113115
get occupiedSeatCount(): number {
114-
return this.dataSource.activeUserCount;
116+
return this.organizationUsersCount;
115117
}
116118

117119
constructor(
@@ -218,6 +220,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
218220
);
219221

220222
this.orgIsOnSecretsManagerStandalone = billingMetadata.isOnSecretsManagerStandalone;
223+
this.organizationUsersCount = billingMetadata.organizationOccupiedSeats;
221224

222225
await this.load();
223226

libs/common/src/billing/models/response/organization-billing-metadata.response.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class OrganizationBillingMetadataResponse extends BaseResponse {
1111
invoiceCreatedDate: Date | null;
1212
subPeriodEndDate: Date | null;
1313
isSubscriptionCanceled: boolean;
14+
organizationOccupiedSeats: number;
1415

1516
constructor(response: any) {
1617
super(response);
@@ -25,6 +26,7 @@ export class OrganizationBillingMetadataResponse extends BaseResponse {
2526
this.invoiceCreatedDate = this.parseDate(this.getResponseProperty("InvoiceCreatedDate"));
2627
this.subPeriodEndDate = this.parseDate(this.getResponseProperty("SubPeriodEndDate"));
2728
this.isSubscriptionCanceled = this.getResponseProperty("IsSubscriptionCanceled");
29+
this.organizationOccupiedSeats = this.getResponseProperty("OrganizationOccupiedSeats");
2830
}
2931

3032
private parseDate(dateString: any): Date | null {

0 commit comments

Comments
 (0)