aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r--client/src/app/+accounts/accounts.component.ts17
1 files changed, 9 insertions, 8 deletions
diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts
index 5b59f3cd0..25eb13588 100644
--- a/client/src/app/+accounts/accounts.component.ts
+++ b/client/src/app/+accounts/accounts.component.ts
@@ -71,11 +71,11 @@ export class AccountsComponent implements OnInit, OnDestroy {
71 HttpStatusCode.NOT_FOUND_404 71 HttpStatusCode.NOT_FOUND_404
72 ])) 72 ]))
73 ) 73 )
74 .subscribe( 74 .subscribe({
75 videoChannels => this.videoChannels = videoChannels.data, 75 next: videoChannels => this.videoChannels = videoChannels.data,
76 76
77 err => this.notifier.error(err.message) 77 error: err => this.notifier.error(err.message)
78 ) 78 })
79 79
80 this.links = [ 80 this.links = [
81 { label: $localize`CHANNELS`, routerLink: 'video-channels' }, 81 { label: $localize`CHANNELS`, routerLink: 'video-channels' },
@@ -174,11 +174,12 @@ export class AccountsComponent implements OnInit, OnDestroy {
174 174
175 const user = this.authService.getUser() 175 const user = this.authService.getUser()
176 if (user.hasRight(UserRight.MANAGE_USERS)) { 176 if (user.hasRight(UserRight.MANAGE_USERS)) {
177 this.userService.getUser(account.userId).subscribe( 177 this.userService.getUser(account.userId)
178 accountUser => this.accountUser = accountUser, 178 .subscribe({
179 next: accountUser => this.accountUser = accountUser,
179 180
180 err => this.notifier.error(err.message) 181 error: err => this.notifier.error(err.message)
181 ) 182 })
182 } 183 }
183 } 184 }
184 185