diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-04 18:20:13 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-04 18:20:13 +0100 |
commit | f73544839586d5e50529617f3649a84ac9e0ab86 (patch) | |
tree | 3022c62f98b609704a8bba678698300b4f46801b /client/src/app/account | |
parent | 59557c4663814b05fb3b2209c486c73a432a65b5 (diff) | |
download | PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.gz PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.zst PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.zip |
Fix error messages on client forms
Diffstat (limited to 'client/src/app/account')
-rw-r--r-- | client/src/app/account/account-change-password/account-change-password.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/account/account-details/account-details.component.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/account/account-change-password/account-change-password.component.ts b/client/src/app/account/account-change-password/account-change-password.component.ts index dba141296..69edec54b 100644 --- a/client/src/app/account/account-change-password/account-change-password.component.ts +++ b/client/src/app/account/account-change-password/account-change-password.component.ts | |||
@@ -59,7 +59,7 @@ export class AccountChangePasswordComponent extends FormReactive implements OnIn | |||
59 | this.userService.changePassword(newPassword).subscribe( | 59 | this.userService.changePassword(newPassword).subscribe( |
60 | () => this.notificationsService.success('Success', 'Password updated.'), | 60 | () => this.notificationsService.success('Success', 'Password updated.'), |
61 | 61 | ||
62 | err => this.error = err | 62 | err => this.error = err.message |
63 | ) | 63 | ) |
64 | } | 64 | } |
65 | } | 65 | } |
diff --git a/client/src/app/account/account-details/account-details.component.ts b/client/src/app/account/account-details/account-details.component.ts index 78e365a62..d7a6e6871 100644 --- a/client/src/app/account/account-details/account-details.component.ts +++ b/client/src/app/account/account-details/account-details.component.ts | |||
@@ -62,7 +62,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
62 | this.authService.refreshUserInformation() | 62 | this.authService.refreshUserInformation() |
63 | }, | 63 | }, |
64 | 64 | ||
65 | err => this.error = err | 65 | err => this.error = err.message |
66 | ) | 66 | ) |
67 | } | 67 | } |
68 | } | 68 | } |