choice step jump in nav

This commit is contained in:
Tykayn 2022-02-09 12:26:47 +01:00 committed by tykayn
parent 5edeb34ceb
commit 73dc9d69f3
2 changed files with 6 additions and 2 deletions

View File

@ -19,5 +19,7 @@
</div>
<app-nav-steps
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
[previous_step_number]="
pollService.form.value.isAboutDate ? pollService.step_current - 1 : pollService.step_current - 2
"
></app-nav-steps>

View File

@ -43,6 +43,8 @@
</div>
<app-nav-steps
[actionBeforeNextStep]="convertDateInputs"
[next_step_number]="pollService.step_current + 1"
[next_step_number]="
pollService.form.value.isAboutDate ? pollService.step_current + 1 : pollService.step_current + 2
"
[previous_step_number]="pollService.step_current - 1"
></app-nav-steps>