aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-04 18:20:13 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-04 18:20:13 +0100
commitf73544839586d5e50529617f3649a84ac9e0ab86 (patch)
tree3022c62f98b609704a8bba678698300b4f46801b /client
parent59557c4663814b05fb3b2209c486c73a432a65b5 (diff)
downloadPeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.gz
PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.zst
PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.zip
Fix error messages on client forms
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+admin/users/user-edit/user-add.component.ts2
-rw-r--r--client/src/app/+admin/users/user-edit/user-update.component.ts4
-rw-r--r--client/src/app/account/account-change-password/account-change-password.component.ts2
-rw-r--r--client/src/app/account/account-details/account-details.component.ts2
-rw-r--r--client/src/app/signup/signup.component.ts2
5 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-add.component.ts b/client/src/app/+admin/users/user-edit/user-add.component.ts
index 8e3e3d53d..64cee43be 100644
--- a/client/src/app/+admin/users/user-edit/user-add.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-add.component.ts
@@ -80,7 +80,7 @@ export class UserAddComponent extends UserEdit implements OnInit {
80 this.router.navigate([ '/admin/users/list' ]) 80 this.router.navigate([ '/admin/users/list' ])
81 }, 81 },
82 82
83 err => this.error = err 83 err => this.error = err.message
84 ) 84 )
85 } 85 }
86 86
diff --git a/client/src/app/+admin/users/user-edit/user-update.component.ts b/client/src/app/+admin/users/user-edit/user-update.component.ts
index bcba78a35..23e44ac1f 100644
--- a/client/src/app/+admin/users/user-edit/user-update.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-update.component.ts
@@ -69,7 +69,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
69 this.userService.getUser(userId).subscribe( 69 this.userService.getUser(userId).subscribe(
70 user => this.onUserFetched(user), 70 user => this.onUserFetched(user),
71 71
72 err => this.error = err 72 err => this.error = err.message
73 ) 73 )
74 }) 74 })
75 } 75 }
@@ -92,7 +92,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
92 this.router.navigate([ '/admin/users/list' ]) 92 this.router.navigate([ '/admin/users/list' ])
93 }, 93 },
94 94
95 err => this.error = err 95 err => this.error = err.message
96 ) 96 )
97 } 97 }
98 98
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}
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts
index 65a2d44e3..28e1ed0a8 100644
--- a/client/src/app/signup/signup.component.ts
+++ b/client/src/app/signup/signup.component.ts
@@ -67,7 +67,7 @@ export class SignupComponent extends FormReactive implements OnInit {
67 this.router.navigate([ '/videos/list' ]) 67 this.router.navigate([ '/videos/list' ])
68 }, 68 },
69 69
70 err => this.error = err 70 err => this.error = err.message
71 ) 71 )
72 } 72 }
73} 73}