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

Work on #431 - update label in Pab QA links

parent f7669379
No related branches found
No related tags found
No related merge requests found
import { Component, Input, Output, EventEmitter, OnChanges, OnDestroy } from "@angular/core";
import { NgParameter } from "../../formulaire/elements/ngparam";
import { LinkedValue, ParamValueMode, Observer, Structure, acSection, ParamDefinition, ChildNub } from "jalhyd";
import { LinkedValue, ParamValueMode, Observer, acSection, ParamDefinition, ChildNub, Cloisons, Pab } from "jalhyd";
import { FormulaireService } from "../../services/formulaire.service";
import { I18nService } from "../../services/internationalisation.service";
import { FormulaireDefinition } from "../../formulaire/definition/form-definition";
......@@ -169,7 +169,14 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
}
// 1. Paramètre / résultat d'un Nub enfant au sein d'un Nub parent
if (i.nub instanceof ChildNub) {
if (
(i.nub instanceof ChildNub)
|| (
(i.nub instanceof Cloisons)
&& i.nub.parent !== undefined
&& (i.nub.parent instanceof Pab)
)
) {
let pos: number;
pos = i.nub.findPositionInParent();
return `${preview} - ` + sprintf(
......
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