Default selection plan upgrade fix (#658)
* fixed a broken default selection for plan upgrades * added a semicolon
This commit is contained in:
parent
949f61f1a4
commit
4cd052e009
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit 5e0a2d1d998b5d36b093f3eff032453421680a41
|
Subproject commit 27bcbf4b41373f8fbd3941c8ea6645414dac4fdd
|
|
@ -4,8 +4,8 @@
|
||||||
aria-hidden="true">×</span></button>
|
aria-hidden="true">×</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>
|
||||||
|
|
|
@ -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) { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue