diff options
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-update.component.ts')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-update.component.ts | 14 |
1 files changed, 10 insertions, 4 deletions
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 2128ba4fd..42599a17e 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 | |||
@@ -33,7 +33,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
33 | private router: Router, | 33 | private router: Router, |
34 | private notifier: Notifier, | 34 | private notifier: Notifier, |
35 | private userService: UserService | 35 | private userService: UserService |
36 | ) { | 36 | ) { |
37 | super() | 37 | super() |
38 | 38 | ||
39 | this.buildQuotaOptions() | 39 | this.buildQuotaOptions() |
@@ -63,7 +63,9 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
63 | .subscribe({ | 63 | .subscribe({ |
64 | next: user => this.onUserFetched(user), | 64 | next: user => this.onUserFetched(user), |
65 | 65 | ||
66 | error: err => this.error = err.message | 66 | error: err => { |
67 | this.error = err.message | ||
68 | } | ||
67 | }) | 69 | }) |
68 | }) | 70 | }) |
69 | } | 71 | } |
@@ -91,7 +93,9 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
91 | this.router.navigate([ '/admin/users/list' ]) | 93 | this.router.navigate([ '/admin/users/list' ]) |
92 | }, | 94 | }, |
93 | 95 | ||
94 | error: err => this.error = err.message | 96 | error: err => { |
97 | this.error = err.message | ||
98 | } | ||
95 | }) | 99 | }) |
96 | } | 100 | } |
97 | 101 | ||
@@ -114,7 +118,9 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
114 | this.notifier.success($localize`An email asking for password reset has been sent to ${this.user.username}.`) | 118 | this.notifier.success($localize`An email asking for password reset has been sent to ${this.user.username}.`) |
115 | }, | 119 | }, |
116 | 120 | ||
117 | error: err => this.error = err.message | 121 | error: err => { |
122 | this.error = err.message | ||
123 | } | ||
118 | }) | 124 | }) |
119 | } | 125 | } |
120 | 126 | ||