Skip to content
Snippets Groups Projects
Commit bdb072ec authored by francois.grand's avatar francois.grand
Browse files

#48 mode de valeur des paramètres : modif pour afficher l'option "lié" quand...

 #48 mode de valeur des paramètres : modif pour afficher l'option "lié" quand une seule calculette est ouverte dans le cas où c'est une calculette "ouvrages parallèles" (pour pouvoir lier des ouvrages entre eux)
parent df4b0739
No related branches found
No related tags found
1 merge request!22Resolve "Lier des paramètres ou des résultats entre les calculettes"
......@@ -4,7 +4,7 @@ import { InternationalisationService } from "../../services/internationalisation
import { NgParameter, ParamRadioConfig } from "../../formulaire/ngparam";
import { NgParamInputComponent } from "../ngparam-input/ngparam-input.component";
import { ServiceFactory } from "../../services/service-factory";
import { ParamValueMode } from "jalhyd";
import { ParamValueMode, CalculatorType } from "jalhyd";
import { FormulaireService } from "../../services/formulaire/formulaire.service";
@Component({
......@@ -137,7 +137,9 @@ export class ParamFieldLineComponent implements OnChanges {
* calcule la présence du radio "paramètre lié" (importé d'une autre calculette)
*/
private hasRadioLink(): boolean {
return this._formService.formulaires.length > 1;
if (this._formService.formulaires.length > 0)
return this._formService.formulaires.length > 1 || this._formService.formulaires[0].calculatorType == CalculatorType.ParallelStructure;
return false;
}
/**
......
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