Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fixed the mutilple menu call issue
[portal.git]
/
portal-FE-common
/
src
/
app
/
layout
/
components
/
sidebar
/
sidebar.component.ts
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
1723f69
..
9ea540c
100644
(file)
--- 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() {
}
ngOnChanges() {
- this.changeLang(this.langFromTab);
+ if(this.langFromTab)
+ this.changeLang();
}
}
- changeLang(
lang
){
+ changeLang(){
this.menuData=[];
this.isActive = false;
this.collapsed = false;
this.menuData=[];
this.isActive = false;
this.collapsed = false;
- this.languageFinal=lang;
+
//
this.languageFinal=lang;
this.showMenu = '';
this.pushRightClass = 'push-right';
this.sidebarService.getLeftMenu()
this.showMenu = '';
this.pushRightClass = 'push-right';
this.sidebarService.getLeftMenu()
@@
-139,7
+140,7
@@
export class SidebarComponent implements OnInit {
}
ngOnInit() {
}
ngOnInit() {
- this.changeLang(
""
);
+ this.changeLang();
}
eventCalled() {
}
eventCalled() {
@@
-168,4
+169,4
@@
export class SidebarComponent implements OnInit {
const dom: any = document.querySelector('body');
dom.classList.toggle(this.pushRightClass);
}
const dom: any = document.querySelector('body');
dom.classList.toggle(this.pushRightClass);
}
-}
+}
\ No newline at end of file