Skip to content
Snippets Groups Projects
Commit 884d8d3c authored by François Grand's avatar François Grand
Browse files

refactor: unused code in FormulaireSolveur.update()

refs #601
parent 9e25a948
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!203Resolve "Solveur multimodule: le module existe toujours après suppression"
......@@ -47,11 +47,10 @@ export class FormulaireSolveur extends FormulaireFixedVar {
}
}
// copied from FormFixedVar, to avoid calling super.update()
if (data.action === "propertyChange") {
else if (data.action === "propertyChange") {
this.reset();
}
if (sender instanceof SelectField) {
else if (sender instanceof SelectField) {
if (sender.id === "select_target_nub" && data.action === "select") {
// update Solveur property: Nub to calculate
try {
......@@ -81,9 +80,7 @@ export class FormulaireSolveur extends FormulaireFixedVar {
// reflect changes in GUI
const inputXinit = this.getFormulaireNodeById("Xinit") as NgParameter;
inputXinit.notifyValueModified(this);
}
} else if (sender instanceof SelectField) {
if (sender.id === this._targettedResultSelectId) {
} else if (sender.id === this._targettedResultSelectId) {
// refresh parameters selector
this.refreshParameterEntries();
}
......
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