aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/users/user-edit
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/users/user-edit')
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts6
-rw-r--r--client/src/app/+admin/users/user-edit/user-edit.ts2
-rw-r--r--client/src/app/+admin/users/user-edit/user-password.component.ts6
-rw-r--r--client/src/app/+admin/users/user-edit/user-update.component.ts14
4 files changed, 19 insertions, 9 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts
index 8403db91a..b61b22fd0 100644
--- a/client/src/app/+admin/users/user-edit/user-create.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-create.component.ts
@@ -33,7 +33,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
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()
@@ -78,7 +78,9 @@ export class UserCreateComponent extends UserEdit implements OnInit {
78 this.router.navigate([ '/admin/users/list' ]) 78 this.router.navigate([ '/admin/users/list' ])
79 }, 79 },
80 80
81 error: err => this.error = err.message 81 error: err => {
82 this.error = err.message
83 }
82 }) 84 })
83 } 85 }
84 86
diff --git a/client/src/app/+admin/users/user-edit/user-edit.ts b/client/src/app/+admin/users/user-edit/user-edit.ts
index ae1f79ba0..af5e674a7 100644
--- a/client/src/app/+admin/users/user-edit/user-edit.ts
+++ b/client/src/app/+admin/users/user-edit/user-edit.ts
@@ -7,7 +7,7 @@ import { HTMLServerConfig, UserAdminFlag, UserRole, VideoResolution } from '@sha
7import { SelectOptionsItem } from '../../../../types/select-options-item.model' 7import { SelectOptionsItem } from '../../../../types/select-options-item.model'
8 8
9@Directive() 9@Directive()
10// tslint:disable-next-line: directive-class-suffix 10// eslint-disable-next-line @angular-eslint/directive-class-suffix
11export abstract class UserEdit extends FormReactive implements OnInit { 11export abstract class UserEdit extends FormReactive implements OnInit {
12 videoQuotaOptions: SelectOptionsItem[] = [] 12 videoQuotaOptions: SelectOptionsItem[] = []
13 videoQuotaDailyOptions: SelectOptionsItem[] = [] 13 videoQuotaDailyOptions: SelectOptionsItem[] = []
diff --git a/client/src/app/+admin/users/user-edit/user-password.component.ts b/client/src/app/+admin/users/user-edit/user-password.component.ts
index 7c42b9241..42bf20de1 100644
--- a/client/src/app/+admin/users/user-edit/user-password.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-password.component.ts
@@ -20,7 +20,7 @@ export class UserPasswordComponent extends FormReactive implements OnInit {
20 protected formValidatorService: FormValidatorService, 20 protected formValidatorService: FormValidatorService,
21 private notifier: Notifier, 21 private notifier: Notifier,
22 private userService: UserService 22 private userService: UserService
23 ) { 23 ) {
24 super() 24 super()
25 } 25 }
26 26
@@ -39,7 +39,9 @@ export class UserPasswordComponent extends FormReactive implements OnInit {
39 .subscribe({ 39 .subscribe({
40 next: () => this.notifier.success($localize`Password changed for user ${this.username}.`), 40 next: () => this.notifier.success($localize`Password changed for user ${this.username}.`),
41 41
42 error: err => this.error = err.message 42 error: err => {
43 this.error = err.message
44 }
43 }) 45 })
44 } 46 }
45 47
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