From 714a5740283bb24d3c7f21c3e75ab134f25def1e Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 22 Apr 2021 07:15:37 +1000 Subject: [PATCH] Do not show free trial wording if upgrading plan (#940) --- .../settings/organization-plans.component.html | 15 ++++++++++----- src/app/settings/organization-plans.component.ts | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/app/settings/organization-plans.component.html b/src/app/settings/organization-plans.component.html index 4b16ee1817..811fc8779b 100644 --- a/src/app/settings/organization-plans.component.html +++ b/src/app/settings/organization-plans.component.html @@ -54,7 +54,7 @@ • {{'onPremHostingOptional' | i18n}} • {{'includeSsoAuthentication' | i18n}} • {{'includeEnterprisePolicies' | i18n}} - • + • {{'xDayFreeTrial' | i18n : selectableProduct.trialPeriodDays }} @@ -79,7 +79,7 @@ • {{'usersGetPremium' | i18n}} • {{'priorityCustomerSupport' | i18n}} - • + • {{'xDayFreeTrial' | i18n : selectableProduct.trialPeriodDays }} @@ -224,12 +224,17 @@

{{'total' | i18n}}: {{total | currency:'USD $'}}/{{selectedPlanInterval | i18n}}

- {{'paymentChargedWithTrial' | i18n : (selectedPlanInterval | i18n) }} + + {{'paymentChargedWithTrial' | i18n : (selectedPlanInterval | i18n) }} + + + + {{'paymentCharged' | i18n : (selectedPlanInterval | i18n) }} + + - - {{'paymentCharged' | i18n : (selectedPlanInterval | i18n) }}
{{'singleOrgBlockCreateMessage' | i18n}} diff --git a/src/app/settings/organization-plans.component.ts b/src/app/settings/organization-plans.component.ts index 0d14eba353..c643c69347 100644 --- a/src/app/settings/organization-plans.component.ts +++ b/src/app/settings/organization-plans.component.ts @@ -61,6 +61,7 @@ export class OrganizationPlansComponent implements OnInit { productTypes = ProductType; formPromise: Promise; singleOrgPolicyBlock: boolean = false; + freeTrial: boolean = false; plans: PlanResponse[]; @@ -187,6 +188,7 @@ export class OrganizationPlansComponent implements OnInit { this.selectedPlan.hasAdditionalSeatsOption) { this.additionalSeats = 1; } + this.freeTrial = this.selectedPlan.trialPeriodDays != null; } changedOwnedBusiness() {