update navigation + profile

This commit is contained in:
_Bastler
2021-09-23 13:53:08 +02:00
parent 53ac145165
commit 1c0be5e1ea
25 changed files with 469 additions and 204 deletions
+5 -4
View File
@@ -27,14 +27,15 @@ export class UserComponent implements OnInit {
this.profileService.getForUser(this.username).subscribe((data: any) => {
this.success = true;
this.model = data;
this.authService.auth.subscribe((auth: any) => {
this.isMe = auth && auth.principal && auth.principal.username == this.model.username;
});
}, error => {
this.error = error;
})
this.authService.auth.subscribe((auth: any) => {
this.isMe = auth && auth.principal && auth.principal.username == this.username;
console.log(this.isMe, auth);
});
}