mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00:00
few fixes to plan changes (#624)
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
<div *ngFor="let selectableProduct of selectableProducts" class="form-check form-check-block">
|
<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}}"
|
<input class="form-check-input" type="radio" name="product" id="product{{selectableProduct.product}}"
|
||||||
[value]="selectableProduct.product" [(ngModel)]="product" (change)="changedProduct()">
|
[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}}
|
{{ selectableProduct.nameLocalizationKey | i18n}}
|
||||||
<small class="mb-1">{{ selectableProduct.descriptionLocalizationKey | i18n : '1'}}</small>
|
<small class="mb-1">{{ selectableProduct.descriptionLocalizationKey | i18n : '1'}}</small>
|
||||||
<small *ngIf="selectableProduct.product == productTypes.Free">•
|
<small *ngIf="selectableProduct.product == productTypes.Free">•
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
name: string;
|
name: string;
|
||||||
billingEmail: string;
|
billingEmail: string;
|
||||||
businessName: string;
|
businessName: string;
|
||||||
|
productTypes = ProductType;
|
||||||
|
formPromise: Promise<any>;
|
||||||
|
|
||||||
plans: PlanResponse[];
|
plans: PlanResponse[];
|
||||||
|
|
||||||
@@ -74,10 +76,6 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
return this.organizationId == null;
|
return this.organizationId == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
get productTypes() {
|
|
||||||
return ProductType;
|
|
||||||
}
|
|
||||||
|
|
||||||
get selectedPlan() {
|
get selectedPlan() {
|
||||||
return this.plans.find((plan) => plan.type === this.plan);
|
return this.plans.find((plan) => plan.type === this.plan);
|
||||||
}
|
}
|
||||||
@@ -286,8 +284,8 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const formPromise = doSubmit();
|
this.formPromise = doSubmit();
|
||||||
await formPromise;
|
await this.formPromise;
|
||||||
this.onSuccess.emit();
|
this.onSuccess.emit();
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user