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

PreBarrage: disable "results" link when no result

parent 46a02710
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
<a (click)="showPBInputData = true;">{{ uitextInputData }}</a>
</div>
<div class="drs-item" [class.current]="! showPBInputData">
<a (click)="showPBInputData = false;">{{ uitextResults }}</a>
<a (click)="! pbShowResultsDisabled && showPBInputData = false;">{{ uitextResults }}</a>
</div>
</div>
</div>
......
......@@ -19,6 +19,7 @@ import {
Par,
ParSimulationParams,
ParSimulation,
PreBarrage,
Espece,
VariatedDetails
} from "jalhyd";
......@@ -562,6 +563,12 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe
(this._formulaire as FormulairePrebarrage).nodeSelected(event.node);
}
/** True if PreBarrage Nub has no results */
public get pbShowResultsDisabled(): boolean {
const res = ((this._formulaire as FormulairePrebarrage).currentNub as PreBarrage).result;
return res === undefined;
}
public openHelp() {
window.open("assets/docs/" + this.appSetupService.language + "/calculators/" + this._formulaire.helpLink, "_blank");
}
......
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