client/nav: add user avatar

This commit is contained in:
rr-
2016-04-11 18:36:48 +02:00
parent 1086bca3c2
commit c543b77aed
4 changed files with 22 additions and 3 deletions

View File

@ -10,6 +10,7 @@ class NavigationItem {
this.name = name;
this.url = url;
this.available = true;
this.imageUrl = null;
}
}
@ -46,6 +47,7 @@ class TopNavController {
updateVisibility() {
this.items.account.url = '/user/' + api.userName;
this.items.account.imageUrl = api.user ? api.user.avatarUrl : null;
const b = Object.keys(this.items);
for (let key of b) {