1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +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> </div>
<ng-container bitDialogFooter> <ng-container bitDialogFooter>
<button bitButton bitFormButton buttonType="primary" type="submit"> <button bitButton bitFormButton buttonType="primary" type="submit">
{{ "upgrade" | i18n }} {{ sub.subscription.status === "canceled" ? ("restart" | i18n) : ("upgrade" | i18n) }}
</button> </button>
<button bitButton buttonType="secondary" type="button" [bitDialogClose]="ResultType.Closed"> <button bitButton buttonType="secondary" type="button" [bitDialogClose]="ResultType.Closed">
{{ "cancel" | i18n }} {{ "cancel" | i18n }}

View File

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

View File

@@ -494,7 +494,11 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
}; };
get showChangePlanButton() { 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() { get canUseBillingSync() {

View File

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