From 16ea4741e31e55ff8720ec06aad401b6090d7387 Mon Sep 17 00:00:00 2001 From: zdenevuk <zdenko.vuk@.ijs.si> Date: Wed, 23 Nov 2022 18:20:20 +0100 Subject: [PATCH] added a ng-if for duration text missing --- .../existing-simulations.component.html | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/app/pages/simulation-wizard/existing-simulations/existing-simulations.component.html b/src/app/pages/simulation-wizard/existing-simulations/existing-simulations.component.html index 46aa5812..34332bf6 100644 --- a/src/app/pages/simulation-wizard/existing-simulations/existing-simulations.component.html +++ b/src/app/pages/simulation-wizard/existing-simulations/existing-simulations.component.html @@ -53,9 +53,7 @@ > </nb-icon> </span> - <span class="text-description">{{ - simulation.description - }}</span> + <span class="text-description">{{ simulation.description }}</span> <button *ngIf="selectedSimulation == simulation; else elseBlock" nbButton @@ -70,9 +68,18 @@ select </button> </ng-template> - <span class="text-duration"> - 1 day simulation + <span + class="text-duration" + *ngIf=" + simulation.duration != undefined; + else elseSimulationDurationBlock + " + > + {{ simulation.duration }} </span> + <ng-template #elseSimulationDurationBlock> + <span class="text-duration"> no data about duration </span> + </ng-template> </nb-card-body> </nb-card> </section> @@ -305,8 +312,8 @@ nbTooltip="This button will run Preprocess Data, Generate Population, Generate Travel Demand Model and Run the Simulation. GET http://localhost:8082/traffic-simulation/simulation/{id}/run" [disabled]="!selectedSimulation || runSimulationBtnDisabled" > - Run simulation</button - > + Run simulation + </button> <!-- <nb-icon [icon]=" runSimulation.status == 'running' -- GitLab