1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-20300] Fix self-serve resubscribe bugs (#14296)

* Address bugs

* Cy's feedback

* Cy's feedback
This commit is contained in:
Alex Morask
2025-04-28 14:38:48 -04:00
committed by GitHub
parent 17bc3e6501
commit ff846d2fab
4 changed files with 10 additions and 3 deletions

View File

@@ -983,7 +983,7 @@
</div>
<ng-container bitDialogFooter>
<button bitButton bitFormButton buttonType="primary" type="submit">
{{ "upgrade" | i18n }}
{{ sub.subscription.status === "canceled" ? ("restart" | i18n) : ("upgrade" | i18n) }}
</button>
<button bitButton buttonType="secondary" type="button" [bitDialogClose]="ResultType.Closed">
{{ "cancel" | i18n }}

View File

@@ -744,7 +744,7 @@ export class ChangePlanDialogComponent implements OnInit, OnDestroy {
const doSubmit = async (): Promise<string> => {
let orgId: string = null;
if (this.isSubscriptionCanceled) {
if (this.sub.subscription.status === "canceled") {
await this.restartSubscription();
orgId = this.organizationId;
} else {

View File

@@ -494,7 +494,11 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
};
get showChangePlanButton() {
return this.sub.plan.productTier !== ProductTierType.Enterprise && !this.showChangePlan;
return (
!this.showChangePlan &&
this.sub.plan.productTier !== ProductTierType.Enterprise &&
!this.sub.subscription.cancelled
);
}
get canUseBillingSync() {

View File

@@ -10628,5 +10628,8 @@
},
"newBusinessUnit": {
"message": "New business unit"
},
"restart": {
"message": "Restart"
}
}