diff options
Diffstat (limited to 'client/src/app/shared/shared-main/video-channel/video-channel.model.ts')
-rw-r--r-- | client/src/app/shared/shared-main/video-channel/video-channel.model.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts index 4f1f5b65d..c6a63fe6c 100644 --- a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts +++ b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts | |||
@@ -56,6 +56,11 @@ export class VideoChannel extends Actor implements ServerVideoChannel { | |||
56 | this.updateComputedAttributes() | 56 | this.updateComputedAttributes() |
57 | } | 57 | } |
58 | 58 | ||
59 | resetAvatar () { | ||
60 | this.avatar = null | ||
61 | this.avatarUrl = VideoChannel.GET_DEFAULT_AVATAR_URL() | ||
62 | } | ||
63 | |||
59 | private updateComputedAttributes () { | 64 | private updateComputedAttributes () { |
60 | this.avatarUrl = VideoChannel.GET_ACTOR_AVATAR_URL(this) | 65 | this.avatarUrl = VideoChannel.GET_ACTOR_AVATAR_URL(this) |
61 | } | 66 | } |