Fix business stepper logic
This commit is contained in:
parent
54eff47d3e
commit
2c04145a43
4 changed files with 11 additions and 4 deletions
|
@ -13,6 +13,11 @@ mat-card.centercard{
|
||||||
font-family: 'Spartan', sans-serif;
|
font-family: 'Spartan', sans-serif;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::ng-deep .mat-vertical-stepper-header{
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
a.link{
|
a.link{
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<mat-card class="centercard">
|
<mat-card class="centercard">
|
||||||
<h3>{{ vE.businessSignupTitle }}</h3>
|
<h3>{{ vE.businessSignupTitle }}</h3>
|
||||||
<mat-vertical-stepper #stepper [linear]="true">
|
<mat-vertical-stepper #stepper [linear]="true">
|
||||||
<mat-step label="{{ vE.businessBizInfo }}" [stepControl]="bizForm" editable="false">
|
<mat-step label="{{ vE.businessBizInfo }}" editable="false">
|
||||||
<p>{{ vE.businessAddrsNobiz }}</p>
|
<p>{{ vE.businessAddrsNobiz }}</p>
|
||||||
<mat-card [formGroup]="bizForm">
|
<mat-card [formGroup]="bizForm">
|
||||||
<mat-form-field appearance="outline" [style.width.px]=300>
|
<mat-form-field appearance="outline" [style.width.px]=300>
|
||||||
|
|
|
@ -82,7 +82,8 @@ export class BusinessComponent implements OnInit {
|
||||||
postal: '',
|
postal: '',
|
||||||
country: '',
|
country: '',
|
||||||
email: '',
|
email: '',
|
||||||
website: ''
|
website: '',
|
||||||
|
payconf: false
|
||||||
};
|
};
|
||||||
// -------------------------------------
|
// -------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -215,7 +216,8 @@ export class BusinessComponent implements OnInit {
|
||||||
postal: this.bizForm.get('postal')!.value,
|
postal: this.bizForm.get('postal')!.value,
|
||||||
country: this.bizForm.get('country')!.value,
|
country: this.bizForm.get('country')!.value,
|
||||||
email: this.bizForm.get('email')!.value,
|
email: this.bizForm.get('email')!.value,
|
||||||
website: this.bizForm.get('website')!.value
|
website: this.bizForm.get('website')!.value,
|
||||||
|
payconf: false
|
||||||
};
|
};
|
||||||
this.userService.addOwner(this.ownerdata);
|
this.userService.addOwner(this.ownerdata);
|
||||||
this.stepper!.next();
|
this.stepper!.next();
|
||||||
|
|
|
@ -140,7 +140,7 @@ export class UserService{
|
||||||
return obs;
|
return obs;
|
||||||
}
|
}
|
||||||
|
|
||||||
addOwner(oData: {first: string, last: string, phone: string, name: string, street: string, city: string, state: string, postal: string, country: string, email: string, website: string}) {
|
addOwner(oData: {first: string, last: string, phone: string, name: string, street: string, city: string, state: string, postal: string, country: string, email: string, website: string, payconf: boolean}) {
|
||||||
|
|
||||||
let obs = this.http.post(this.beUrl+'api/owner', {payload: oData}, {headers: this.reqHeaders, params: this.reqParams});
|
let obs = this.http.post(this.beUrl+'api/owner', {payload: oData}, {headers: this.reqHeaders, params: this.reqParams});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue