From 0979075453b380fa8e3694db3f460e822f046c35 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Tue, 27 Apr 2021 16:08:10 +0200 Subject: Use account initial as default avatar (#4002) * client: use account initial as default avatar * fix UI in user list Avatars was cutted in the top and bottom --- client/src/app/shared/shared-main/account/account.model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-main/account/account.model.ts') diff --git a/client/src/app/shared/shared-main/account/account.model.ts b/client/src/app/shared/shared-main/account/account.model.ts index 65e6798d4..c90bafa5c 100644 --- a/client/src/app/shared/shared-main/account/account.model.ts +++ b/client/src/app/shared/shared-main/account/account.model.ts @@ -14,7 +14,7 @@ export class Account extends Actor implements ServerAccount { userId?: number static GET_ACTOR_AVATAR_URL (actor: { avatar?: { url?: string, path: string } }) { - return Actor.GET_ACTOR_AVATAR_URL(actor) || this.GET_DEFAULT_AVATAR_URL() + return Actor.GET_ACTOR_AVATAR_URL(actor) } static GET_DEFAULT_AVATAR_URL () { @@ -46,7 +46,7 @@ export class Account extends Actor implements ServerAccount { resetAvatar () { this.avatar = null - this.avatarUrl = Account.GET_DEFAULT_AVATAR_URL() + this.avatarUrl = null } private updateComputedAttributes () { -- cgit v1.2.3