Skip to content
Snippets Groups Projects
Commit b51a4e72 authored by Mathias Chouet's avatar Mathias Chouet Committed by mathias.chouet
Browse files

PreBarrage: restore select mechanisms on Cloison form

parent 591a73d8
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@
"type": "subform",
"config": [
{
"id": "fs_wall_device",
"id": "fs_ouvrage",
"type": "fieldset_template",
"calcType": "Structure",
"defaultStructType": "SeuilRectangulaire",
......@@ -105,14 +105,14 @@
"id": "struct_container",
"type": "template_container",
"templates": [
"fs_wall_device"
"fs_ouvrage"
]
},
{
"type": "options",
"upstreamBasinSelectId": "select_upstream_basin",
"downstreamBasinSelectId": "select_downstream_basin",
"selectIds": [ ]
"selectIds": [ "select_structure", "select_loidebit" ]
}
]
},
......
......@@ -36,19 +36,7 @@ export class FormulairePbCloison extends FormulaireParallelStructure {
// interface Observer
public update(sender: IObservable, data: any) {
// copied from FormDefinition, to avoid calling super.update()
if (sender instanceof Nub) {
switch (data.action) {
case "resultUpdated":
// forward Nub results update notification to FormCompute objects
this.reaffectResultComponents();
break;
}
}
// copied from FormFixedVar, to avoid calling super.update()
if (data.action === "propertyChange") {
this.reset();
}
super.update(sender, data);
if (sender instanceof SelectFieldNub) {
const nub = this._currentNub as PbCloison;
......
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