From 31607d81a08d35976bafab224caa020384d03f3d Mon Sep 17 00:00:00 2001 From: Mathias Chouet <mathias.chouet@irstea.fr> Date: Mon, 8 Jun 2020 17:02:14 +0200 Subject: [PATCH] [WIP] subform system for PreBarrage --- src/app/components/pb-schema/pb-schema.component.html | 2 +- src/app/formulaire/definition/form-definition.ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/app/components/pb-schema/pb-schema.component.html b/src/app/components/pb-schema/pb-schema.component.html index dc5af67fa..b9314c653 100644 --- a/src/app/components/pb-schema/pb-schema.component.html +++ b/src/app/components/pb-schema/pb-schema.component.html @@ -46,6 +46,6 @@ <div id="schema" #schema></div> - <!-- <pre id="debug">{{ graphDef }} </pre> --> + <pre id="debug">{{ graphDef }} </pre> </mat-card-content> diff --git a/src/app/formulaire/definition/form-definition.ts b/src/app/formulaire/definition/form-definition.ts index 7bb348414..a4a0732ea 100644 --- a/src/app/formulaire/definition/form-definition.ts +++ b/src/app/formulaire/definition/form-definition.ts @@ -219,13 +219,6 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs this.kids.push(tab); } - private parse_pb_schema(json: {}) { - const sch: PbSchema = new PbSchema(this); - sch.parseConfig(json); - this.kids.push(sch); - } - - /** * 1ère passe d'analyse de la configuration */ @@ -283,10 +276,6 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs this.parse_pab_table(conf); break; - case "pb_schema": // not generic at all - this.parse_pb_schema(conf); - break; - default: throw new Error(`type d'objet de module de calcul ${type} non pris en charge`); } -- GitLab