diff options
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/accounts.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts index dbc7c8887..4820eaf32 100644 --- a/client/src/app/+accounts/accounts.component.ts +++ b/client/src/app/+accounts/accounts.component.ts | |||
@@ -6,6 +6,7 @@ import { AuthService, Notifier, RedirectService, RestExtractor, ScreenService, U | |||
6 | import { Account, AccountService, DropdownAction, ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main' | 6 | import { Account, AccountService, DropdownAction, ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main' |
7 | import { AccountReportComponent } from '@app/shared/shared-moderation' | 7 | import { AccountReportComponent } from '@app/shared/shared-moderation' |
8 | import { User, UserRight } from '@shared/models' | 8 | import { User, UserRight } from '@shared/models' |
9 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | ||
9 | 10 | ||
10 | @Component({ | 11 | @Component({ |
11 | templateUrl: './accounts.component.html', | 12 | templateUrl: './accounts.component.html', |
@@ -47,7 +48,10 @@ export class AccountsComponent implements OnInit, OnDestroy { | |||
47 | switchMap(accountId => this.accountService.getAccount(accountId)), | 48 | switchMap(accountId => this.accountService.getAccount(accountId)), |
48 | tap(account => this.onAccount(account)), | 49 | tap(account => this.onAccount(account)), |
49 | switchMap(account => this.videoChannelService.listAccountVideoChannels(account)), | 50 | switchMap(account => this.videoChannelService.listAccountVideoChannels(account)), |
50 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, [ 400, 404 ])) | 51 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, [ |
52 | HttpStatusCode.BAD_REQUEST_400, | ||
53 | HttpStatusCode.NOT_FOUND_404 | ||
54 | ])) | ||
51 | ) | 55 | ) |
52 | .subscribe( | 56 | .subscribe( |
53 | videoChannels => this.videoChannels = videoChannels.data, | 57 | videoChannels => this.videoChannels = videoChannels.data, |