diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 11:27:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:01:45 +0200 |
commit | 1378c0d343028f3d40d7d795422684ab9e6a1599 (patch) | |
tree | 08062b84a38a7e2dfe0aa674e7ca8e1b7321044e /client/src/app/+accounts | |
parent | c186a67f90203af6bfa434f026efdc99193bcd65 (diff) | |
download | PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.gz PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.zst PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.zip |
Fix client lint
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/accounts.component.ts | 17 |
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 | ||