1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

[AC-2721] [Defect] Apply subscription status updates in provider subscription details (#9729)

* Resolve the pending cancellation status

* Add the contact information
This commit is contained in:
cyprain-okeke
2024-06-20 13:50:10 +01:00
committed by GitHub
parent 8d04731633
commit 593dc3c716
3 changed files with 14 additions and 3 deletions

View File

@@ -43,6 +43,10 @@ export class SubscriptionStatusComponent {
}
get status(): string {
if (this.subscription.cancelAt && this.subscription.status === "active") {
this.subscription.status = "pending_cancellation";
}
return this.subscription.status;
}
@@ -151,13 +155,15 @@ export class SubscriptionStatusComponent {
},
date: {
label: cancellationDateLabel,
value: this.subscription.currentPeriodEndDate.toDateString(),
value: this.subscription.cancelAt,
},
callout: {
severity: "warning",
header: pendingCancellationText,
body: this.i18nService.t("subscriptionPendingCanceled"),
showReinstatementButton: true,
body:
this.i18nService.t("subscriptionPendingCanceled") +
this.i18nService.t("providerReinstate"),
showReinstatementButton: false,
},
};
}