Use the same method everywhere to calculate the avatar url

This commit is contained in:
kolaente 2020-02-09 13:28:33 +01:00
parent 783401723a
commit 05da96e545
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
5 changed files with 11 additions and 18 deletions

View file

@ -16,7 +16,7 @@
<a @click="refreshApp()" class="button is-primary noshadow">Update Now</a>
</div>
<div class="user">
<img :src="gravatar()" class="avatar" alt=""/>
<img :src="user.infos.getAvatarUrl()" class="avatar" alt=""/>
<div class="dropdown is-right is-active">
<div class="dropdown-trigger">
<button class="button noshadow" @click="userMenuActive = !userMenuActive">
@ -274,9 +274,6 @@
logout() {
auth.logout()
},
gravatar() {
return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50&d=mp'
},
loadNamespaces() {
this.namespaceService = new NamespaceService()
this.namespaceService.getAll()