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
Branches
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment