aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
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/src/app/+admin
parent59557c4663814b05fb3b2209c486c73a432a65b5 (diff)
downloadPeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.gz
PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.tar.zst
PeerTube-f73544839586d5e50529617f3649a84ac9e0ab86.zip
Fix error messages on client forms
Diffstat (limited to 'client/src/app/+admin')
-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
2 files changed, 3 insertions, 3 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