From 93cae47925e4dd68b7d34a41927b2740b4fab1b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 Jul 2019 15:40:13 +0200 Subject: Add client hooks --- .../my-account-video-playlist-elements.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+my-account/my-account-video-playlists') diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.ts b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.ts index 03f34412c..d5122aeba 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.ts +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.ts @@ -131,9 +131,9 @@ export class MyAccountVideoPlaylistElementsComponent implements OnInit, OnDestro private loadElements () { this.videoService.getPlaylistVideos(this.videoPlaylistId, this.pagination) - .subscribe(({ totalVideos, videos }) => { - this.videos = this.videos.concat(videos) - this.pagination.totalItems = totalVideos + .subscribe(({ total, data }) => { + this.videos = this.videos.concat(data) + this.pagination.totalItems = total }) } -- cgit v1.2.3