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

PreBarrage: restore select mechanisms on Cloison form

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