From 8c334400d2282473a738d5540f4ebac4799a27e5 Mon Sep 17 00:00:00 2001 From: alx652 Date: Tue, 22 Apr 2025 17:22:05 -0400 Subject: [PATCH 01/18] save changes --- src/app/core/auth/login/login.component.html | 2 +- src/app/core/auth/login/login.component.ts | 14 +++++++- src/app/core/base/base.component.html | 18 ++++++++-- src/app/core/base/base.component.scss | 20 +++++++++++ src/app/core/base/base.component.ts | 33 +++++++++++++++++-- src/app/core/config/config.model.ts | 3 ++ .../main-notification.component.html | 3 +- .../main-notification.component.scss | 6 ++++ .../main-notification.component.ts | 10 +++++- .../substance-form.component.html | 2 +- .../substance-form.component.scss | 4 +++ .../substance-form.component.ts | 7 ++++ .../substance-text-search.component.scss | 2 +- src/app/fda/config/config.json | 5 +++ src/index.html | 2 +- src/styles/_mat-side-nav.scss | 2 +- 16 files changed, 121 insertions(+), 12 deletions(-) diff --git a/src/app/core/auth/login/login.component.html b/src/app/core/auth/login/login.component.html index 0e227889c..d5dbfb54c 100644 --- a/src/app/core/auth/login/login.component.html +++ b/src/app/core/auth/login/login.component.html @@ -1,5 +1,5 @@
- + Login diff --git a/src/app/core/auth/login/login.component.ts b/src/app/core/auth/login/login.component.ts index 4ab7eae16..1854bd4f7 100644 --- a/src/app/core/auth/login/login.component.ts +++ b/src/app/core/auth/login/login.component.ts @@ -31,6 +31,7 @@ export class LoginComponent implements OnInit, OnDestroy { private newuserinfo = {}; private emailFormUserRegConf: any = undefined; public emailFormUserRegActive: boolean = false; + showLogin = false; constructor( private authService: AuthService, @@ -52,7 +53,18 @@ export class LoginComponent implements OnInit, OnDestroy { ngOnInit() { this.loadingService.setLoading(true); - // As we develop more types of userRegistration, make a utility service to provide configuration information. + // As we develop more types of userRegistration, make a utility service to provide configuration information. + + if(this.configService.configData.showLogin === undefined) { + this.showLogin = true; + } else { + if(this.configService.configData.showLogin === false) { + this.showLogin = false; + } else { + this.showLogin = true; + } + } + this.loadedComponents = this.configService.configData.loadedComponents || null; if(typeof this.configService.configData.userRegistration !== "undefined" ) { this.emailFormUserRegConf = diff --git a/src/app/core/base/base.component.html b/src/app/core/base/base.component.html index 4194f0be6..757742afb 100644 --- a/src/app/core/base/base.component.html +++ b/src/app/core/base/base.component.html @@ -1,4 +1,15 @@ - +
+ +
hello there 2
+ +
+ +
+ +
+
{{bannerText}}
+
+