From 93cae47925e4dd68b7d34a41927b2740b4fab1b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 Jul 2019 15:40:13 +0200 Subject: Add client hooks --- .../account-video-channels/account-video-channels.component.ts | 2 +- client/src/app/+accounts/account-videos/account-videos.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+accounts') diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts index a8d4237e8..4d07d653f 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts @@ -68,7 +68,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { switchMap(res => from(res.data)), concatMap(videoChannel => { return this.videoService.getVideoChannelVideos(videoChannel, this.videosPagination, this.videosSort) - .pipe(map(data => ({ videoChannel, videos: data.videos }))) + .pipe(map(data => ({ videoChannel, videos: data.data }))) }) ) .subscribe(({ videoChannel, videos }) => { diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 5a99aadce..ac4477c18 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts @@ -69,8 +69,8 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, return this.videoService .getAccountVideos(this.account, newPagination, this.sort) .pipe( - tap(({ totalVideos }) => { - this.titlePage = this.i18n('Published {{totalVideos}} videos', { totalVideos }) + tap(({ total }) => { + this.titlePage = this.i18n('Published {{total}} videos', { total }) }) ) } -- cgit v1.2.3