diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2021-04-27 16:08:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 16:08:10 +0200 |
commit | 0979075453b380fa8e3694db3f460e822f046c35 (patch) | |
tree | 93efe74fe8fb76c39a5acfe0722243ccdfd045b5 /client/src/app/shared/shared-main | |
parent | 75d749596205511e012cecbdd39123277244f462 (diff) | |
download | PeerTube-0979075453b380fa8e3694db3f460e822f046c35.tar.gz PeerTube-0979075453b380fa8e3694db3f460e822f046c35.tar.zst PeerTube-0979075453b380fa8e3694db3f460e822f046c35.zip |
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
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/account/account.model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
14 | userId?: number | 14 | userId?: number |
15 | 15 | ||
16 | static GET_ACTOR_AVATAR_URL (actor: { avatar?: { url?: string, path: string } }) { | 16 | static GET_ACTOR_AVATAR_URL (actor: { avatar?: { url?: string, path: string } }) { |
17 | return Actor.GET_ACTOR_AVATAR_URL(actor) || this.GET_DEFAULT_AVATAR_URL() | 17 | return Actor.GET_ACTOR_AVATAR_URL(actor) |
18 | } | 18 | } |
19 | 19 | ||
20 | static GET_DEFAULT_AVATAR_URL () { | 20 | static GET_DEFAULT_AVATAR_URL () { |
@@ -46,7 +46,7 @@ export class Account extends Actor implements ServerAccount { | |||
46 | 46 | ||
47 | resetAvatar () { | 47 | resetAvatar () { |
48 | this.avatar = null | 48 | this.avatar = null |
49 | this.avatarUrl = Account.GET_DEFAULT_AVATAR_URL() | 49 | this.avatarUrl = null |
50 | } | 50 | } |
51 | 51 | ||
52 | private updateComputedAttributes () { | 52 | private updateComputedAttributes () { |