diff --git a/apps/web/src/app/billing/individual/user-subscription.component.html b/apps/web/src/app/billing/individual/user-subscription.component.html index 08eec09ff9..3430bddc13 100644 --- a/apps/web/src/app/billing/individual/user-subscription.component.html +++ b/apps/web/src/app/billing/individual/user-subscription.component.html @@ -48,7 +48,7 @@ }}
{{ "nextCharge" | i18n }}
-
+
{{ nextInvoice ? (nextInvoice.date | date: "mediumDate") + @@ -57,6 +57,15 @@ : "-" }}
+
+ {{ + nextInvoice + ? (sub.subscription.periodEndDate | date: "mediumDate") + + ", " + + (nextInvoice.amount | currency: "$") + : "-" + }} +
diff --git a/apps/web/src/app/billing/individual/user-subscription.component.ts b/apps/web/src/app/billing/individual/user-subscription.component.ts index 113d2feabe..cca17f6b9c 100644 --- a/apps/web/src/app/billing/individual/user-subscription.component.ts +++ b/apps/web/src/app/billing/individual/user-subscription.component.ts @@ -40,9 +40,13 @@ export class UserSubscriptionComponent implements OnInit { sub: SubscriptionResponse; selfHosted = false; cloudWebVaultUrl: string; + enableTimeThreshold: boolean; cancelPromise: Promise; reinstatePromise: Promise; + protected enableTimeThreshold$ = this.configService.getFeatureFlag$( + FeatureFlag.EnableTimeThreshold, + ); protected deprecateStripeSourcesAPI$ = this.configService.getFeatureFlag$( FeatureFlag.AC2476_DeprecateStripeSourcesAPI, @@ -67,6 +71,7 @@ export class UserSubscriptionComponent implements OnInit { async ngOnInit() { this.cloudWebVaultUrl = await firstValueFrom(this.environmentService.cloudWebVaultUrl$); await this.load(); + this.enableTimeThreshold = await firstValueFrom(this.enableTimeThreshold$); this.firstLoaded = true; } diff --git a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html index 656796b443..25c8c547b2 100644 --- a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html +++ b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html @@ -53,9 +53,12 @@
{{ "subscriptionExpiration" | i18n }}
-
+
{{ nextInvoice ? (nextInvoice.date | date: "mediumDate") : "-" }}
+
+ {{ nextInvoice ? (sub.subscription.periodEndDate | date: "mediumDate") : "-" }} +