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

Correction bug passage du mode LIÉ au mode CALC

parent cc93de0d
No related branches found
No related tags found
1 merge request!40Resolve "Amélioration du système de paramètres liés"
import { Component, OnInit, DoCheck, OnDestroy, ViewChild, ViewChildren, QueryList, AfterViewChecked } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { Observer, Session } from "jalhyd";
import { Observer, Session, ParamValueMode } from "jalhyd";
import { FormulaireService } from "../../services/formulaire/formulaire.service";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
......@@ -191,7 +191,9 @@ export class GenericCalculatorComponent extends BaseComponent implements OnInit,
* gestion des événements clic sur les radios
*/
public onRadioClick(info: any) {
this.updateLinkedParameters();
if (info.param.valueMode === ParamValueMode.LINK) {
this.updateLinkedParameters(); // only when switching to LINK mode
}
this._pendingRadioClick = true;
this._pendingRadioClickInfo = info;
}
......
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