From c4ba963242d1085fc2cd84b0a31a2e5b0a3e8387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Tue, 28 Feb 2023 10:40:48 +0100 Subject: [PATCH] feat: display nghyd,jalhyd revisions in console refs #604 --- src/app/app.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index de541dcec..0e1044ac6 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -223,6 +223,7 @@ export class AppComponent implements OnInit, OnDestroy, Observer { ngOnInit() { this.formulaireService.addObserver(this); this._innerWidth = window.innerWidth; + this.logRevisionInfo(); // Initialise communication with UserConfirmationService. // When receiving a message from it, open a dialog to ask user to confirm. @@ -688,6 +689,12 @@ export class AppComponent implements OnInit, OnDestroy, Observer { }; } + private logRevisionInfo() { + const ri = this.revisionInfo; + console.log("JaLHyd", ri.jalhyd.date, ri.jalhyd.version); + console.log("ngHyd", ri.nghyd.date, ri.nghyd.version); + } + /** * sauvegarde du/des formulaires * @param form formulaire à sélectionner par défaut dans la liste -- GitLab