Skip to content

Commit 175d366

Browse files
Removed Substeps getting displayed even though step is not current (#391)
Co-authored-by: tumms2021389 <[email protected]>
1 parent ee4d3e1 commit 175d366

File tree

1 file changed

+22
-38
lines changed

1 file changed

+22
-38
lines changed

packages/angular-sdk-components/src/lib/_components/infra/multi-step/multi-step.component.html

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,17 @@
1212
</div>
1313
</div>
1414
<div class="{{ _getVBodyClass(i) }}">
15-
<ng-container *ngIf="mainStep?.steps">
16-
<ul style="padding-inline-start: 0rem; margin-left: -7px">
17-
<li *ngFor="let subStep of mainStep.steps" class="psdk-sub-step-list">
18-
<div style="display: inline-flex">
19-
<img *ngIf="subStep.visited_status == 'current'" class="psdk-current-svg-icon" src="{{ svgCurrent$ }}" />
20-
<img *ngIf="subStep.visited_status != 'current'" class="psdk-not-current-svg-icon" src="{{ svgNotCurrent$ }}" />
21-
<label *ngIf="subStep.visited_status == 'current'" class="psdk-sub-step-current">{{ subStep.name }}</label>
22-
<label *ngIf="subStep.visited_status != 'current'" class="psdk-sub-step-not-current">{{ subStep.name }}</label>
23-
</div>
24-
<div *ngIf="subStep.visited_status == 'current'">
25-
<component-mapper
26-
name="AssignmentCard"
27-
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
28-
[parent]="this"
29-
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
30-
></component-mapper>
31-
</div>
32-
</li>
33-
</ul>
15+
<ng-container *ngIf="mainStep?.steps && mainStep.visited_status == 'current'">
16+
<div *ngFor="let subStep of mainStep.steps">
17+
<div *ngIf="subStep.visited_status == 'current'">
18+
<component-mapper
19+
name="AssignmentCard"
20+
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
21+
[parent]="this"
22+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
23+
></component-mapper>
24+
</div>
25+
</div>
3426
</ng-container>
3527

3628
<ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'">
@@ -64,25 +56,17 @@
6456
</ng-container>
6557
</div>
6658
<div *ngFor="let mainStep of arNavigationSteps$" class="psdk-horizontal-stepper-body">
67-
<ng-container *ngIf="mainStep?.steps">
68-
<ul style="padding-inline-start: 0rem; margin-left: 35px">
69-
<li *ngFor="let subStep of mainStep.steps" class="psdk-sub-step-list">
70-
<div style="display: inline-flex">
71-
<img *ngIf="subStep.visited_status == 'current'" class="psdk-current-svg-icon" src="{{ svgCurrent$ }}" />
72-
<img *ngIf="subStep.visited_status != 'current'" class="psdk-not-current-svg-icon" src="{{ svgNotCurrent$ }}" />
73-
<label *ngIf="subStep.visited_status == 'current'" class="psdk-sub-step-current">{{ subStep.name }}</label>
74-
<label *ngIf="subStep.visited_status != 'current'" class="psdk-sub-step-not-current">{{ subStep.name }}</label>
75-
</div>
76-
<div *ngIf="subStep.visited_status == 'current'">
77-
<component-mapper
78-
name="AssignmentCard"
79-
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
80-
[parent]="this"
81-
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
82-
></component-mapper>
83-
</div>
84-
</li>
85-
</ul>
59+
<ng-container *ngIf="mainStep?.steps && mainStep.visited_status == 'current'">
60+
<div *ngFor="let subStep of mainStep.steps">
61+
<div *ngIf="subStep.visited_status == 'current'">
62+
<component-mapper
63+
name="AssignmentCard"
64+
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
65+
[parent]="this"
66+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
67+
></component-mapper>
68+
</div>
69+
</div>
8670
</ng-container>
8771

8872
<ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'">

0 commit comments

Comments
 (0)