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

Fix #309 - consider children Nubs id Solveur's searched parameter selector

parent 12eda6d3
No related branches found
No related tags found
No related merge requests found
Pipeline #137615 passed
......@@ -32,10 +32,12 @@ export class SelectFieldParameter extends SelectFieldReference {
const ntc: Nub = (this.parentForm.currentNub as Solveur).nubToCalculate;
const searchableParams = Solveur.getDependingNubsSearchableParams(ntc);
for (const p of searchableParams) {
const calc = fs.getFormulaireFromId(p.parentNub.uid).calculatorName;
const varName = fs.expandVariableName(p.parentNub.calcType, p.symbol);
const label = `${p.symbol} - ${varName} (${calc})`;
this.addEntry(new SelectEntry(this._entriesBaseId + p.nubUid + "_" + p.symbol, p, decodeHtml(label)));
if (p.visible) {
const calc = fs.getFormulaireFromId(p.originNub.uid).calculatorName;
const varName = fs.expandVariableName(p.originNub.calcType, p.symbol);
const label = `${p.symbol} - ${varName} (${calc})`;
this.addEntry(new SelectEntry(this._entriesBaseId + p.originNub.uid + "_" + p.symbol, p, decodeHtml(label)));
}
}
break;
}
......
......@@ -264,6 +264,7 @@
"INFO_LIB_VDEB": "Conveyance speed",
"INFO_LIB_VMAX": "Maximal speed",
"INFO_LIB_W": "Gate opening",
"INFO_LIB_X": "Value for searched parameter",
"INFO_LIB_YC": "Critical depth",
"INFO_LIB_YCON": "Conjugate depth",
"INFO_LIB_YCOR": "Corresponding depth",
......
......@@ -263,6 +263,7 @@
"INFO_LIB_VDEB": "Vitesse débitante",
"INFO_LIB_VMAX": "Vitesse maximale",
"INFO_LIB_W": "Ouverture de vanne",
"INFO_LIB_X": "Valeur du paramètre recherché",
"INFO_LIB_YC": "Tirant d'eau critique",
"INFO_LIB_YCON": "Tirant d'eau conjugué",
"INFO_LIB_YCOR": "Tirant d'eau correspondant",
......
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