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 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/client/src/app/+signup/+register/custom-stepper.component.ts b/client/src/app/+signup/+register/custom-stepper.component.ts index 3b7ba40e8..4c308f7b6 100644 --- a/client/src/app/+signup/+register/custom-stepper.component.ts +++ b/client/src/app/+signup/+register/custom-stepper.component.ts | |||
@@ -14,13 +14,10 @@ export class CustomStepperComponent extends CdkStepper { | |||
14 | } | 14 | } |
15 | 15 | ||
16 | isCompleted (step: CdkStep) { | 16 | isCompleted (step: CdkStep) { |
17 | return step.stepControl?.dirty && step.stepControl.valid | 17 | return step.completed |
18 | } | 18 | } |
19 | 19 | ||
20 | isAccessible (index: number) { | 20 | isAccessible (step: CdkStep) { |
21 | const stepsCompletedMap = this.steps.map(step => this.isCompleted(step)) | 21 | return step.editable && step.completed |
22 | return index === 0 | ||
23 | ? true | ||
24 | : stepsCompletedMap[index - 1] | ||
25 | } | 22 | } |
26 | } | 23 | } |