Default selection plan upgrade fix (#658)

* fixed a broken default selection for plan upgrades

* added a semicolon
This commit is contained in:
Addison Beck 2020-09-18 14:15:24 -04:00 committed by GitHub
parent 949f61f1a4
commit 4cd052e009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 5e0a2d1d998b5d36b093f3eff032453421680a41 Subproject commit 27bcbf4b41373f8fbd3941c8ea6645414dac4fdd

View File

@ -4,8 +4,8 @@
aria-hidden="true">&times;</span></button> aria-hidden="true">&times;</span></button>
<h2 class="card-body-header">{{'changeBillingPlan' | i18n}}</h2> <h2 class="card-body-header">{{'changeBillingPlan' | i18n}}</h2>
<p class="mb-0">{{'changeBillingPlanUpgrade' | i18n}}</p> <p class="mb-0">{{'changeBillingPlanUpgrade' | i18n}}</p>
<app-organization-plans [showFree]="false" [showCancel]="true" plan="families" [organizationId]="organizationId" <app-organization-plans [showFree]="false" [showCancel]="true" [plan]="defaultUpgradePlan"
(onCanceled)="cancel()"> [product]="defaultUpgradeProduct" [organizationId]="organizationId" (onCanceled)="cancel()">
</app-organization-plans> </app-organization-plans>
</div> </div>
</div> </div>

View File

@ -8,6 +8,9 @@ import {
import { ApiService } from 'jslib/abstractions/api.service'; import { ApiService } from 'jslib/abstractions/api.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { PlanType } from 'jslib/enums/planType';
import { ProductType } from 'jslib/enums/productType';
@Component({ @Component({
selector: 'app-change-plan', selector: 'app-change-plan',
templateUrl: 'change-plan.component.html', templateUrl: 'change-plan.component.html',
@ -18,6 +21,8 @@ export class ChangePlanComponent {
@Output() onCanceled = new EventEmitter(); @Output() onCanceled = new EventEmitter();
formPromise: Promise<any>; formPromise: Promise<any>;
defaultUpgradePlan: PlanType = PlanType.FamiliesAnnually;
defaultUpgradeProduct: ProductType = ProductType.Families;
constructor(private apiService: ApiService, private platformUtilsService: PlatformUtilsService) { } constructor(private apiService: ApiService, private platformUtilsService: PlatformUtilsService) { }