From 6478b474b0a6fa7d09e19db32520c7e6b58b94b7 Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Thu, 26 Apr 2018 10:07:21 +0200
Subject: [PATCH] =?UTF-8?q?=20#78=20FormulaireDefinition=20:=20ajout=20de?=
 =?UTF-8?q?=20la=20m=C3=A9thode=20deleteSessionNub()?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/app/formulaire/definition/form-definition.ts | 4 ++++
 src/app/services/param/param.service.ts          | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/app/formulaire/definition/form-definition.ts b/src/app/formulaire/definition/form-definition.ts
index f6e05c3a8..180e7b283 100644
--- a/src/app/formulaire/definition/form-definition.ts
+++ b/src/app/formulaire/definition/form-definition.ts
@@ -114,6 +114,10 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
         throw new Error(`FormulaireDefinition.getNubParamFromSymbol() : pas de Nub trouvé pour ${params}`)
     }
 
+    protected deleteSessionNub(sn: SessionNub) {
+        this._paramService.deleteSessionNub(sn);
+    }
+
     protected initParse() {
     }
 
diff --git a/src/app/services/param/param.service.ts b/src/app/services/param/param.service.ts
index 6bcc6f831..38999d3d8 100644
--- a/src/app/services/param/param.service.ts
+++ b/src/app/services/param/param.service.ts
@@ -103,4 +103,8 @@ export class ParamService {
     public replaceSessionNub(sn: SessionNub, params: Props): SessionNub {
         return NubFactory.getInstance().replaceSessionNub(sn, params);
     }
+
+    public deleteSessionNub(sn: SessionNub) {
+        NubFactory.getInstance().deleteSessionNub(sn);
+    }
 }
-- 
GitLab