From e460adc9eb382cd3c5ea381ac8eba649a5a39735 Mon Sep 17 00:00:00 2001
From: Mathias Chouet <mathias.chouet@irstea.fr>
Date: Tue, 21 Apr 2020 12:23:29 +0200
Subject: [PATCH] Fix methods visibility

---
 src/app/app.component.ts                                      | 2 +-
 .../components/calculator-list/calculator-list.component.ts   | 4 ++--
 src/app/formulaire/definition/form-section.ts                 | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 435edb999..c7bd6a30d 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -447,7 +447,7 @@ export class AppComponent implements OnInit, OnDestroy, Observer {
 
   // interface Observer
 
-  update(sender: any, data: any): void {
+  public update(sender: any, data: any): void {
     if (sender instanceof FormulaireService) {
       switch (data["action"]) {
         case "createForm":
diff --git a/src/app/components/calculator-list/calculator-list.component.ts b/src/app/components/calculator-list/calculator-list.component.ts
index f014d75c8..de8820b9d 100644
--- a/src/app/components/calculator-list/calculator-list.component.ts
+++ b/src/app/components/calculator-list/calculator-list.component.ts
@@ -236,14 +236,14 @@ export class CalculatorListComponent implements OnInit {
 
     // interface Observer
 
-    update(sender: any, data: any): void {
+    public update(sender: any, data: any): void {
         if (sender instanceof I18nService) {
             // reload themes if language changed
             this.loadCalculatorsThemes();
         }
     }
 
-    ngOnInit() {
+    public ngOnInit() {
         this.loadCalculatorsThemes();
     }
 }
diff --git a/src/app/formulaire/definition/form-section.ts b/src/app/formulaire/definition/form-section.ts
index 77669213a..30cdd2c40 100644
--- a/src/app/formulaire/definition/form-section.ts
+++ b/src/app/formulaire/definition/form-section.ts
@@ -6,7 +6,7 @@ import { IObservable, Session, SectionNub } from "jalhyd";
 
 export class FormulaireSection extends FormulaireFixedVar {
 
-    update(sender: IObservable, data: any) {
+    public update(sender: IObservable, data: any) {
         super.update(sender, data);
         // changement de propriété du FieldSet contenant le select de choix du type de section
         if (sender instanceof FieldSet && sender.id === "fs_section" && data.action === "propertyChange") {
-- 
GitLab