diff options
Diffstat (limited to 'client/src/app/admin/users')
3 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/admin/users/shared/user.service.ts b/client/src/app/admin/users/shared/user.service.ts index d96db4575..13be553c0 100644 --- a/client/src/app/admin/users/shared/user.service.ts +++ b/client/src/app/admin/users/shared/user.service.ts | |||
@@ -20,7 +20,7 @@ export class UserService { | |||
20 | 20 | ||
21 | return this.authHttp.post(UserService.BASE_USERS_URL, body) | 21 | return this.authHttp.post(UserService.BASE_USERS_URL, body) |
22 | .map(this.restExtractor.extractDataBool) | 22 | .map(this.restExtractor.extractDataBool) |
23 | .catch((res) => this.restExtractor.handleError(res)); | 23 | .catch(this.restExtractor.handleError); |
24 | } | 24 | } |
25 | 25 | ||
26 | getUsers() { | 26 | getUsers() { |
diff --git a/client/src/app/admin/users/user-add/user-add.component.ts b/client/src/app/admin/users/user-add/user-add.component.ts index b7efd3a80..8dd98cc5c 100644 --- a/client/src/app/admin/users/user-add/user-add.component.ts +++ b/client/src/app/admin/users/user-add/user-add.component.ts | |||
@@ -31,7 +31,7 @@ export class UserAddComponent implements OnInit { | |||
31 | this.userService.addUser(this.username, this.password).subscribe( | 31 | this.userService.addUser(this.username, this.password).subscribe( |
32 | ok => this.router.navigate([ '/admin/users/list' ]), | 32 | ok => this.router.navigate([ '/admin/users/list' ]), |
33 | 33 | ||
34 | err => this.error = err | 34 | err => this.error = err.text |
35 | ); | 35 | ); |
36 | } | 36 | } |
37 | } | 37 | } |
diff --git a/client/src/app/admin/users/user-list/user-list.component.ts b/client/src/app/admin/users/user-list/user-list.component.ts index 598daa42a..c89a61bca 100644 --- a/client/src/app/admin/users/user-list/user-list.component.ts +++ b/client/src/app/admin/users/user-list/user-list.component.ts | |||
@@ -27,7 +27,7 @@ export class UserListComponent implements OnInit { | |||
27 | this.totalUsers = totalUsers; | 27 | this.totalUsers = totalUsers; |
28 | }, | 28 | }, |
29 | 29 | ||
30 | err => alert(err) | 30 | err => alert(err.text) |
31 | ); | 31 | ); |
32 | } | 32 | } |
33 | 33 | ||
@@ -37,7 +37,7 @@ export class UserListComponent implements OnInit { | |||
37 | this.userService.removeUser(user).subscribe( | 37 | this.userService.removeUser(user).subscribe( |
38 | () => this.getUsers(), | 38 | () => this.getUsers(), |
39 | 39 | ||
40 | err => alert(err) | 40 | err => alert(err.text) |
41 | ); | 41 | ); |
42 | } | 42 | } |
43 | } | 43 | } |