few fixes to plan changes (#624)

This commit is contained in:
Kyle Spearrin 2020-08-25 14:21:03 -04:00 committed by GitHub
parent 2135accaf4
commit 95dc3c92c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 12 deletions

View File

@ -46,7 +46,7 @@
<div *ngFor="let selectableProduct of selectableProducts" class="form-check form-check-block">
<input class="form-check-input" type="radio" name="product" id="product{{selectableProduct.product}}"
[value]="selectableProduct.product" [(ngModel)]="product" (change)="changedProduct()">
<label class="form-check-label" for="product">
<label class="form-check-label" for="product{{selectableProduct.product}}">
{{ selectableProduct.nameLocalizationKey | i18n}}
<small class="mb-1">{{ selectableProduct.descriptionLocalizationKey | i18n : '1'}}</small>
<small *ngIf="selectableProduct.product == productTypes.Free">

View File

@ -54,6 +54,8 @@ export class OrganizationPlansComponent implements OnInit {
name: string;
billingEmail: string;
businessName: string;
productTypes = ProductType;
formPromise: Promise<any>;
plans: PlanResponse[];
@ -74,10 +76,6 @@ export class OrganizationPlansComponent implements OnInit {
return this.organizationId == null;
}
get productTypes() {
return ProductType;
}
get selectedPlan() {
return this.plans.find((plan) => plan.type === this.plan);
}
@ -286,8 +284,8 @@ export class OrganizationPlansComponent implements OnInit {
}
};
const formPromise = doSubmit();
await formPromise;
this.formPromise = doSubmit();
await this.formPromise;
this.onSuccess.emit();
} catch { }
}