diff options
Diffstat (limited to 'client/src/app/shared/shared-main/account/account.model.ts')
-rw-r--r-- | client/src/app/shared/shared-main/account/account.model.ts | 5 |
1 files changed, 5 insertions, 0 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 b3dc6cfe5..b71a893d1 100644 --- a/client/src/app/shared/shared-main/account/account.model.ts +++ b/client/src/app/shared/shared-main/account/account.model.ts | |||
@@ -44,6 +44,11 @@ export class Account extends Actor implements ServerAccount { | |||
44 | this.updateComputedAttributes() | 44 | this.updateComputedAttributes() |
45 | } | 45 | } |
46 | 46 | ||
47 | resetAvatar () { | ||
48 | this.avatar = null | ||
49 | this.avatarUrl = Account.GET_DEFAULT_AVATAR_URL() | ||
50 | } | ||
51 | |||
47 | private updateComputedAttributes () { | 52 | private updateComputedAttributes () { |
48 | this.avatarUrl = Account.GET_ACTOR_AVATAR_URL(this) | 53 | this.avatarUrl = Account.GET_ACTOR_AVATAR_URL(this) |
49 | } | 54 | } |