diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-settings.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-settings.component.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts index d5d019b35..c16368952 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts | |||
@@ -53,4 +53,17 @@ export class MyAccountSettingsComponent implements OnInit, AfterViewChecked { | |||
53 | }) | 53 | }) |
54 | ) | 54 | ) |
55 | } | 55 | } |
56 | |||
57 | onAvatarDelete () { | ||
58 | this.userService.deleteAvatar() | ||
59 | .subscribe( | ||
60 | data => { | ||
61 | this.notifier.success($localize`Avatar deleted.`) | ||
62 | |||
63 | this.user.updateAccountAvatar() | ||
64 | }, | ||
65 | |||
66 | (err: HttpErrorResponse) => this.notifier.error(err.message) | ||
67 | ) | ||
68 | } | ||
56 | } | 69 | } |