diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index 73981a02e2e60c172b0c391340e5dc774f2c2248..45ffc5c417466119bba02551cea89e6b7ab5c429 100644 --- a/src/app/components/generic-calculator/calculator.component.ts +++ b/src/app/components/generic-calculator/calculator.component.ts @@ -25,7 +25,8 @@ import { PbCloison, Espece, VariatedDetails, - ParallelStructure + ParallelStructure, + MacroRugoRemous } from "jalhyd"; import { generateValuesCombination, getUnformattedIthResult, getUnformattedIthValue } from "../../util/util"; @@ -1254,7 +1255,11 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe this.router.navigate(["/calculator", f.uid]); } - public generateBackwaterInPAM() { + 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); + this.router.navigate(["/calculator", f.uid]); } /**