1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-04 09:33:27 +00:00

Fix setup provider page (#1106)

* Show only business org create form if provider

* Remove business name from provider views
This commit is contained in:
Matt Gibson
2021-07-30 08:10:00 -05:00
committed by GitHub
parent 18aeeef6fe
commit 9fabdbd0a1
6 changed files with 26 additions and 23 deletions

View File

@@ -18,11 +18,6 @@
<input id="billingEmail" class="form-control" type="text" name="BillingEmail"
[(ngModel)]="provider.billingEmail" [disabled]="selfHosted">
</div>
<div class="form-group">
<label for="businessName">{{'businessName' | i18n}}</label>
<input id="businessName" class="form-control" type="text" name="BusinessName"
[(ngModel)]="provider.businessName" [disabled]="selfHosted">
</div>
</div>
<div class="col-6">
<app-avatar data="{{provider.name}}" dynamic="true" size="75" fontSize="35"></app-avatar>

View File

@@ -17,12 +17,6 @@
<input id="billingEmail" class="form-control" type="text" name="BillingEmail" [(ngModel)]="billingEmail" required>
</div>
</div>
<div class="row">
<div class="form-group col-6">
<label for="businessName">{{'businessName' | i18n}}</label>
<input id="businessName" class="form-control" type="text" name="BusinessName" [(ngModel)]="businessName">
</div>
</div>
<div class="mt-4">
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">

View File

@@ -33,7 +33,6 @@ export class SetupComponent implements OnInit {
token: string;
name: string;
billingEmail: string;
businessName: string;
constructor(private router: Router, private toasterService: ToasterService,
private i18nService: I18nService, private route: ActivatedRoute,
@@ -80,7 +79,6 @@ export class SetupComponent implements OnInit {
const request = new ProviderSetupRequest();
request.name = this.name;
request.billingEmail = this.billingEmail;
request.businessName = this.businessName;
request.token = this.token;
request.key = key;