Skip to content
Snippets Groups Projects
Commit 16ea4741 authored by zdenevuk's avatar zdenevuk
Browse files

added a ng-if for duration text missing

parent c5ae086e
No related branches found
No related tags found
No related merge requests found
...@@ -53,9 +53,7 @@ ...@@ -53,9 +53,7 @@
> >
</nb-icon> </nb-icon>
</span> </span>
<span class="text-description">{{ <span class="text-description">{{ simulation.description }}</span>
simulation.description
}}</span>
<button <button
*ngIf="selectedSimulation == simulation; else elseBlock" *ngIf="selectedSimulation == simulation; else elseBlock"
nbButton nbButton
...@@ -70,9 +68,18 @@ ...@@ -70,9 +68,18 @@
select select
</button> </button>
</ng-template> </ng-template>
<span class="text-duration"> <span
1 day simulation class="text-duration"
*ngIf="
simulation.duration != undefined;
else elseSimulationDurationBlock
"
>
{{ simulation.duration }}
</span> </span>
<ng-template #elseSimulationDurationBlock>
<span class="text-duration"> no data about duration </span>
</ng-template>
</nb-card-body> </nb-card-body>
</nb-card> </nb-card>
</section> </section>
...@@ -305,8 +312,8 @@ ...@@ -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" 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" [disabled]="!selectedSimulation || runSimulationBtnDisabled"
> >
Run simulation</button Run simulation
> </button>
<!-- <nb-icon <!-- <nb-icon
[icon]=" [icon]="
runSimulation.status == 'running' runSimulation.status == 'running'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment