diff options
Diffstat (limited to 'client/src/app/+signup/+register/custom-stepper.component.ts')
-rw-r--r-- | client/src/app/+signup/+register/custom-stepper.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/+signup/+register/custom-stepper.component.ts b/client/src/app/+signup/+register/custom-stepper.component.ts index 2ae40f3a9..5a80895f9 100644 --- a/client/src/app/+signup/+register/custom-stepper.component.ts +++ b/client/src/app/+signup/+register/custom-stepper.component.ts | |||
@@ -16,4 +16,11 @@ export class CustomStepperComponent extends CdkStepper { | |||
16 | isCompleted (step: CdkStep) { | 16 | isCompleted (step: CdkStep) { |
17 | return step.stepControl && step.stepControl.dirty && step.stepControl.valid | 17 | return step.stepControl && step.stepControl.dirty && step.stepControl.valid |
18 | } | 18 | } |
19 | |||
20 | isAccessible (index: number) { | ||
21 | const stepsCompletedMap = this.steps.map(step => this.isCompleted(step)) | ||
22 | return index === 0 | ||
23 | ? true | ||
24 | : stepsCompletedMap[ index - 1 ] | ||
25 | } | ||
19 | } | 26 | } |