Commit 16d94af2 by Tuukka Kivilahti

logging

1 parent e94a1056
......@@ -35,6 +35,8 @@ export class LeftMenuComponent implements OnInit {
this.route.url.subscribe(segments => {
let path : string = segments.map(segment => segment.path).join("/");
console.log(path);
if(this.searchPath(path, MENU.USER)) {
this.activateUser();
return;
......@@ -61,17 +63,22 @@ export class LeftMenuComponent implements OnInit {
activateInfo() {
console.log("activating info");
this.menu = MENU.INFO;
this.styleClass = "infoMenu";
}
activateUser() {
console.log("activating user");
this.menu = MENU.USER;
this.styleClass = "userMenu";
}
activateAdmin() {
console.log("activating admin");
this.menu = MENU.ADMIN;
this.styleClass = "adminMenu";
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!