Skip to content
Snippets Groups Projects
Commit 75f48e72 authored by François Grand's avatar François Grand Committed by AUBRY JEAN-PASCAL
Browse files

refactor: MacroRugoRemous: use property name constant

refs #609
parent 07131f57
No related branches found
No related tags found
2 merge requests!252release: version 4.18.0,!213Resolve "Ajout du module courbe de remous d'une passe à macro-rugosité"
......@@ -1268,7 +1268,7 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe
public async generateBackwaterInPAM() {
const f: FormulaireDefinition = await this.formulaireService.createFormulaire(CalculatorType.MacroRugoRemous);
const mrr = (f.currentNub as MacroRugoRemous);
mrr.setPropValue("nubMacroRugo", this.formulaire.currentNub.uid);
mrr.setPropValue(MacroRugoRemous.NubMacroRugoProp, this.formulaire.currentNub.uid);
this.router.navigate(["/calculator", f.uid]);
}
......
......@@ -8,7 +8,7 @@ import { FormulaireNode } from "../formulaire-node";
export class SelectFieldTargetPam extends SelectField {
constructor(parent: FormulaireNode) {
super(parent);
this._associatedProperty = "nubMacroRugo";
this._associatedProperty = MacroRugoRemous.NubMacroRugoProp;
}
protected populate() {
......
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