aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-24 03:02:04 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-25 15:37:26 +0100
commitab398a05e9ffaacb8fc713bb2ba9717ac463b34c (patch)
treed73c6debfcc14c0dc05c681bb442e6f6fb6ce3a7 /client/src/app/+accounts
parent6939cbac48e0a9823b34577836480ae3c28186be (diff)
downloadPeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.gz
PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.zst
PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.zip
redirect to login on 401, display error variants in 404 component
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r--client/src/app/+accounts/accounts.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts
index 1458ea59c..e6a5a5d5e 100644
--- a/client/src/app/+accounts/accounts.component.ts
+++ b/client/src/app/+accounts/accounts.component.ts
@@ -50,7 +50,7 @@ export class AccountsComponent implements OnInit, OnDestroy {
50 switchMap(accountId => this.accountService.getAccount(accountId)), 50 switchMap(accountId => this.accountService.getAccount(accountId)),
51 tap(account => this.onAccount(account)), 51 tap(account => this.onAccount(account)),
52 switchMap(account => this.videoChannelService.listAccountVideoChannels(account)), 52 switchMap(account => this.videoChannelService.listAccountVideoChannels(account)),
53 catchError(err => this.restExtractor.redirectTo404IfNotFound(err, [ 53 catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [
54 HttpStatusCode.BAD_REQUEST_400, 54 HttpStatusCode.BAD_REQUEST_400,
55 HttpStatusCode.NOT_FOUND_404 55 HttpStatusCode.NOT_FOUND_404
56 ])) 56 ]))