don't create account until last step

pull/1/head
Chris Veilleux 2019-02-15 22:10:04 -06:00
parent 4d7ad1fa7a
commit 0138942b6a
1 changed files with 7 additions and 10 deletions

View File

@ -51,13 +51,12 @@
<mat-step label="Support Mycroft" [stepControl]="supportControl">
<account-support-step [newAcctForm]="newAcctForm"></account-support-step>
<div fxLayout="row" fxLayoutAlign="end">
<button mat-button matStepperNext [disabled]="!supportControl.valid">
<button mat-button matStepperNext type="button" [disabled]="!supportControl.valid">
Next
</button>
</div>
</mat-step>
<!-- Step 6: DONE! -->
<mat-step label="Done!">
<account-done-step [newAcctForm]="newAcctForm"></account-done-step>
</mat-step>
@ -73,8 +72,7 @@
<fa-icon [icon]="stepDoneIcon"></fa-icon>
</ng-template>
<!-- Step 1: Accept Terms of Use -->
<mat-step label="Terms Of Use" [stepControl]="'termsOfUse'">
<mat-step label="Terms Of Use" [stepControl]="termsOfUseControl">
<account-agreement-step [newAcctForm]="newAcctForm" [step]="'Terms of Use'">
</account-agreement-step>
<div fxLayout="row" fxLayoutAlign="end">
@ -84,7 +82,7 @@
</div>
</mat-step>
<mat-step label="Privacy Policy" [stepControl]="'privacyPolicy'">
<mat-step label="Privacy Policy" [stepControl]="privacyPolicyControl">
<account-agreement-step [newAcctForm]="newAcctForm" [step]="'Privacy Policy'">
</account-agreement-step>
<div fxLayout="row" fxLayoutAlign="end">
@ -94,7 +92,7 @@
</div>
</mat-step>
<mat-step label="Log In Method" [stepControl]="'login'">
<mat-step label="Log In Method" [stepControl]="loginControl">
<account-authentication-step [newAcctForm]="newAcctForm"></account-authentication-step>
<div fxLayout="row" fxLayoutAlign="end">
<button mat-button matStepperNext type="button" [disabled]="!loginControl.valid">
@ -103,7 +101,7 @@
</div>
</mat-step>
<mat-step label="Display Name" [stepControl]="'displayName'">
<mat-step label="Display Name" [stepControl]="displayNameControl">
<account-display-name-step [newAcctForm]="newAcctForm"></account-display-name-step>
<div fxLayout="row" fxLayoutAlign="end">
<button mat-button matStepperNext type="button" [disabled]="!displayNameControl.valid">
@ -112,7 +110,7 @@
</div>
</mat-step>
<mat-step label="Support Mycroft" [stepControl]="'support'">
<mat-step label="Support Mycroft" [stepControl]="supportControl">
<account-support-step [newAcctForm]="newAcctForm"></account-support-step>
<div fxLayout="row" fxLayoutAlign="end">
<button mat-button matStepperNext type="button" [disabled]="!supportControl.valid">
@ -121,7 +119,6 @@
</div>
</mat-step>
<!-- Step 6: DONE! -->
<mat-step label="Done!">
<account-done-step [newAcctForm]="newAcctForm"></account-done-step>
</mat-step>