diff options
author | 2020-08-12 14:56:56 -0400 | |
---|---|---|
committer | 2020-08-12 14:57:04 -0400 | |
commit | 08b693019187909148f50b2ead800b553438e10b (patch) | |
tree | 68d140030c5d9fdb3586ca0dea4c68dabfe97861 /portal-FE-common/src/app | |
parent | 8c25a4de18479983cb63824ebc75b4263c12ffad (diff) |
fixed the mutilple menu call issue
Issue-ID: PORTAL-975
Change-Id: I80481a2ecb04725e1ad851ae6a302ed623315142
Signed-off-by: Sri Balaji Marripud <sri.balaji.marripud@att.com>
Diffstat (limited to 'portal-FE-common/src/app')
-rw-r--r-- | portal-FE-common/src/app/layout/components/header/header.component.ts | 1 | ||||
-rw-r--r-- | portal-FE-common/src/app/layout/components/sidebar/sidebar.component.ts | 11 |
2 files changed, 6 insertions, 6 deletions
diff --git a/portal-FE-common/src/app/layout/components/header/header.component.ts b/portal-FE-common/src/app/layout/components/header/header.component.ts index 74f6fb3a..f09c772e 100644 --- a/portal-FE-common/src/app/layout/components/header/header.component.ts +++ b/portal-FE-common/src/app/layout/components/header/header.component.ts @@ -218,7 +218,6 @@ export class HeaderComponent implements OnInit { setLanguage(langId : string){ this.menusService.setLanguage(langId, this.loginSnippetUserid).subscribe(data =>{ - console.log("Language Applied :", data); this.languageEvent.emit(langId); }); } diff --git a/portal-FE-common/src/app/layout/components/sidebar/sidebar.component.ts b/portal-FE-common/src/app/layout/components/sidebar/sidebar.component.ts index 1723f69b..9ea540c7 100644 --- a/portal-FE-common/src/app/layout/components/sidebar/sidebar.component.ts +++ b/portal-FE-common/src/app/layout/components/sidebar/sidebar.component.ts @@ -75,14 +75,15 @@ export class SidebarComponent implements OnInit { } ngOnChanges() { - this.changeLang(this.langFromTab); + if(this.langFromTab) + this.changeLang(); } - changeLang(lang){ + changeLang(){ this.menuData=[]; this.isActive = false; this.collapsed = false; - this.languageFinal=lang; + // this.languageFinal=lang; this.showMenu = ''; this.pushRightClass = 'push-right'; this.sidebarService.getLeftMenu() @@ -139,7 +140,7 @@ export class SidebarComponent implements OnInit { } ngOnInit() { - this.changeLang(""); + this.changeLang(); } eventCalled() { @@ -168,4 +169,4 @@ export class SidebarComponent implements OnInit { const dom: any = document.querySelector('body'); dom.classList.toggle(this.pushRightClass); } -} +}
\ No newline at end of file |