Skip to content
Snippets Groups Projects
Commit 5fde4833 authored by francois.grand's avatar francois.grand
Browse files

#27 FixedVarResultsComponent : résolution d'un bug empêchant l'affichage du...

 #27 FixedVarResultsComponent : résolution d'un bug empêchant l'affichage du journal si aucun résultat variable
parent 1c83ddb7
No related branches found
No related tags found
1 merge request!12Resolve "Ajout de la calculette "Ouvrages hydrauliques""
......@@ -40,6 +40,10 @@ export class FixedVarResultsComponent implements DoCheck {
*/
private _doUpdate: boolean = false;
private _logUpdated: boolean = false;
private _graphUpdated: boolean = false;
/**
* composant journal
*/
......@@ -65,6 +69,8 @@ export class FixedVarResultsComponent implements DoCheck {
}
public updateView() {
this._logUpdated = false;
this._graphUpdated = false;
this.logComponent.log = undefined;
if (this._results != undefined)
......@@ -81,11 +87,17 @@ export class FixedVarResultsComponent implements DoCheck {
* @returns true si les résultats ont pu être mis à jour
*/
private updateResults() {
if (this._results != undefined && this.resultsGraphComponent != undefined && this.logComponent != undefined) {
this.resultsGraphComponent.results = this._results;
this.resultsGraphComponent.updateView();
this.logComponent.log = this._results.log;
return true;
if (this._results != undefined) {
if (this.resultsGraphComponent != undefined) {
this.resultsGraphComponent.results = this._results;
this.resultsGraphComponent.updateView();
this._graphUpdated = true;
}
if (this.logComponent != undefined) {
this.logComponent.log = this._results.log;
this._logUpdated = true;
}
return this._logUpdated && this._graphUpdated;
}
return false;
}
......
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