Skip to content
Snippets Groups Projects
Commit 687cd57f authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix #304

parent 0c8f8fc1
No related branches found
No related tags found
1 merge request!69Resolve "Module y = a.x + b"
......@@ -2,7 +2,7 @@
<!-- journal -->
<log></log>
<results-chart *ngIf="showVarResults"></results-chart>
<results-chart [hidden]="! showVarResultsChart"></results-chart>
<div>
<!-- table des résultats fixés -->
......
......@@ -167,6 +167,13 @@ export class FixedVarResultsComponent extends ResultsComponent implements DoChec
return this._varResults && this._varResults.hasResults;
}
/**
* affichage du graphique des résultats variés
*/
public get showVarResultsChart(): boolean {
return this._varResults && this._varResults.hasPlottableResults;
}
public getFixedResultClass(i: number) {
// tslint:disable-next-line:no-bitwise
return "result_id_" + String(i & 1);
......
......@@ -36,6 +36,15 @@ export abstract class CalculatedParamResults extends CalculatorResults {
}
public get hasResults(): boolean {
if (this.result === undefined) {
return false;
}
return true;
// return ! this.result.hasOnlyErrors;
}
/** return true if there is something to display on the variable results chart */
public get hasPlottableResults(): boolean {
if (this.result === undefined) {
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