Skip to content

Commit 6e4c9f3

Browse files
committed
feat: display total stop duration of the trainrun section on the section tab
Signed-off-by: Clara Ni <[email protected]>
1 parent 85d0b39 commit 6e4c9f3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/app/view/dialogs/trainrun-and-section-dialog/trainrunsection-tab/trainrun-section-tab.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@
266266
-
267267
</button>
268268
</div>
269+
<div class="StopTime" *ngIf="trainrunSectionTimesService.getTimeStructure().stopTime > 0">
270+
<p>+ {{ trainrunSectionTimesService.getTimeStructure().stopTime }}' stop</p>
271+
</div>
269272
<div class="TravelTimeTime">
270273
<ng-container>
271274
<input

src/app/view/dialogs/trainrun-and-section-dialog/trainrunsection-tab/trainrun-section-tab.component.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ input.NumberOfStopsInputElement.IsActive {
218218
grid-column: 7;
219219
grid-row: 2;
220220
}
221-
221+
::ng-deep .StopTime {
222+
grid-column: 8 / span 2;
223+
grid-row: 1;
224+
color: var(--sbb-form-label-color);
225+
}
222226
::ng-deep .TravelTimeTime {
223227
grid-column: 8 / span 2;
224228
grid-row: 2;

0 commit comments

Comments
 (0)