Fix error messages on client forms
This commit is contained in:
parent
59557c4663
commit
f735448395
|
@ -80,7 +80,7 @@ export class UserAddComponent extends UserEdit implements OnInit {
|
|||
this.router.navigate([ '/admin/users/list' ])
|
||||
},
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
|
|||
this.userService.getUser(userId).subscribe(
|
||||
user => this.onUserFetched(user),
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
})
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
|
|||
this.router.navigate([ '/admin/users/list' ])
|
||||
},
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ export class AccountChangePasswordComponent extends FormReactive implements OnIn
|
|||
this.userService.changePassword(newPassword).subscribe(
|
||||
() => this.notificationsService.success('Success', 'Password updated.'),
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit {
|
|||
this.authService.refreshUserInformation()
|
||||
},
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ export class SignupComponent extends FormReactive implements OnInit {
|
|||
this.router.navigate([ '/videos/list' ])
|
||||
},
|
||||
|
||||
err => this.error = err
|
||||
err => this.error = err.message
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue