diff --git a/src/app/organizations/settings/organization-subscription.component.ts b/src/app/organizations/settings/organization-subscription.component.ts
index cbe8e918..c29989a0 100644
--- a/src/app/organizations/settings/organization-subscription.component.ts
+++ b/src/app/organizations/settings/organization-subscription.component.ts
@@ -105,15 +105,7 @@ export class OrganizationSubscriptionComponent implements OnInit {
}
async changePlan() {
- if (this.subscription == null && this.sub.planType === PlanType.Free) {
- this.showChangePlan = !this.showChangePlan;
- return;
- }
- const contactSupport = await this.platformUtilsService.showDialog(this.i18nService.t('changeBillingPlanDesc'),
- this.i18nService.t('changeBillingPlan'), this.i18nService.t('contactSupport'), this.i18nService.t('close'));
- if (contactSupport) {
- this.platformUtilsService.launchUri('https://bitwarden.com/contact');
- }
+ this.showChangePlan = !this.showChangePlan;
}
closeChangePlan(changed: boolean) {
@@ -216,7 +208,11 @@ export class OrganizationSubscriptionComponent implements OnInit {
}
get subscriptionDesc() {
- if (this.sub.maxAutoscaleSeats === this.sub.seats && this.sub.seats != null) {
+ if (this.sub.planType === PlanType.Free) {
+ return this.i18nService.t('subscriptionFreePlan', this.sub.seats.toString());
+ } else if (this.sub.planType === PlanType.FamiliesAnnually || this.sub.planType === PlanType.FamiliesAnnually2019) {
+ return this.i18nService.t('subscriptionFamiliesPlan', this.sub.seats.toString());
+ } else if (this.sub.maxAutoscaleSeats === this.sub.seats && this.sub.seats != null) {
return this.i18nService.t('subscriptionMaxReached', this.sub.seats.toString());
} else if (this.sub.maxAutoscaleSeats == null) {
return this.i18nService.t('subscriptionUserSeatsUnlimitedAutoscale');
@@ -224,4 +220,8 @@ export class OrganizationSubscriptionComponent implements OnInit {
return this.i18nService.t('subscriptionUserSeatsLimitedAutoscale', this.sub.maxAutoscaleSeats.toString());
}
}
+
+ get showChangePlanButton() {
+ return this.subscription == null && this.sub.planType === PlanType.Free && !this.showChangePlan;
+ }
}
diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json
index fbf9c008..781b81d3 100644
--- a/src/locales/en/messages.json
+++ b/src/locales/en/messages.json
@@ -2804,17 +2804,13 @@
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
},
"changeBillingPlan": {
- "message": "Change Plan",
+ "message": "Upgrade Plan",
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
},
"changeBillingPlanUpgrade": {
"message": "Upgrade your account to another plan by providing the information below. Please ensure that you have an active payment method added to the account.",
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
},
- "changeBillingPlanDesc": {
- "message": "Contact customer support if you would like to change your plan. Please ensure that you have an active payment method added to the account.",
- "description": "A billing plan/package. For example: families, teams, enterprise, etc."
- },
"invoiceNumber": {
"message": "Invoice #$NUMBER$",
"description": "ex. Invoice #79C66F0-0001",
@@ -2938,6 +2934,24 @@
}
}
},
+ "subscriptionFreePlan": {
+ "message": "You cannot invite more than $COUNT$ users without upgrading your plan.",
+ "placeholders": {
+ "count": {
+ "content": "$1",
+ "example": "2"
+ }
+ }
+ },
+ "subscriptionFamiliesPlan": {
+ "message": "You cannot invite more than $COUNT$ users without upgrading your plan. Please contact Customer Support to upgrade.",
+ "placeholders": {
+ "count": {
+ "content": "$1",
+ "example": "6"
+ }
+ }
+ },
"subscriptionMaxReached": {
"message": "Adjustments to your subscription will result in prorated changes to your billing totals. You cannot invite more than $COUNT$ users without increasing your subscription seats.",
"placeholders": {