Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master

master
Max_ES 5 years ago committed by Gitea
commit 7f282a3412

@ -24,7 +24,7 @@ export class MainNavigationComponent implements OnInit {
levellist: Levellist = new Levellist()
level: string
points: number
profileUrl: string
profileUrl: string = "/profile/1"
lighttheme : boolean = true
overlay;
@ -47,11 +47,12 @@ export class MainNavigationComponent implements OnInit {
this.level = this.levellist.getLevelName(user.level)
this.points = user.points
this.profileUrl = '/profile/' + this.userId;
this.updateLinks();
})
}
navLinksLoggedIn = [
{ path: '', label: 'Home' },
{ path: 'profile/1', label: 'Profile' },
{ path: this.profileUrl, label: 'Profile' },
{ path: '/about', label: 'About' },
{ path: '/imprint', label: 'Imprint' },
];
@ -76,6 +77,14 @@ export class MainNavigationComponent implements OnInit {
this.onSetTheme("dark-theme");
}
}
updateLinks(){
this.navLinksLoggedIn = [
{ path: '', label: 'Home' },
{ path: this.profileUrl, label: 'Profile' },
{ path: '/about', label: 'About' },
{ path: '/imprint', label: 'Imprint' },
];
}
@HostBinding('class') componentCssClass;
onSetTheme(theme) {

Loading…
Cancel
Save