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:
@@ -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 }}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -10628,5 +10628,8 @@
|
||||
},
|
||||
"newBusinessUnit": {
|
||||
"message": "New business unit"
|
||||
},
|
||||
"restart": {
|
||||
"message": "Restart"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user