|
@@ -160,10 +160,12 @@ export class AppComponent {
|
|
|
listenForLoginEvents() {
|
|
|
this.events.subscribe('user:login', () => {
|
|
|
this.initWebSocket()
|
|
|
+ this.getMenuList()
|
|
|
this.updateLoggedInStatus(true);
|
|
|
});
|
|
|
this.events.subscribe('user:logout', () => {
|
|
|
this.updateLoggedInStatus(false);
|
|
|
+ this.menuList = []
|
|
|
});
|
|
|
}
|
|
|
async logout() {
|