Skip to content
Snippets Groups Projects
Commit a8e59f64 authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Fix jalhyd#205 - Jet: hide trajectory chart when dicho calculation fails

parent 49b975af
No related branches found
No related tags found
No related merge requests found
Pipeline #137855 failed
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<results-chart *ngIf="showVarResults"></results-chart> <results-chart *ngIf="showVarResults"></results-chart>
<jet-trajectory-chart *ngIf="hasResults"></jet-trajectory-chart> <jet-trajectory-chart *ngIf="hasValidResults"></jet-trajectory-chart>
<div> <div>
<!-- table des résultats fixés --> <!-- table des résultats fixés -->
......
...@@ -24,6 +24,14 @@ export class JetResultsComponent extends FixedVarResultsComponent { ...@@ -24,6 +24,14 @@ export class JetResultsComponent extends FixedVarResultsComponent {
); );
} }
public get hasValidResults(): boolean {
return this.hasResults && (
this._fixedResults && this._fixedResults.result && this._fixedResults.result.sourceNub.result.ok
||
this._varResults&& this._varResults.result && this._varResults.result.sourceNub.result.ok
);
}
public updateView() { public updateView() {
if (this.jetTrajectoryChartComponent) { if (this.jetTrajectoryChartComponent) {
this.jetTrajectoryChartComponent.results = undefined; this.jetTrajectoryChartComponent.results = undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment