diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2021-10-12 13:45:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 13:45:55 +0200 |
commit | c3bb04413ec05dfe544ec74ffdf2f264975bd121 (patch) | |
tree | e7e8ca811e78ccd89009b34d5ccaae2b4b48081f /client/src/app/+my-library | |
parent | 8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0 (diff) | |
download | PeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.tar.gz PeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.tar.zst PeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.zip |
add ...playlist.elements.loaded hook (#4387)
* client: add ...playlist.elements.loaded hook
closes #4385
* fix linting error
* client: add playlist metadata to video-watch hooks
* Prefer using a filter for playlist elements hook
Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'client/src/app/+my-library')
-rw-r--r-- | client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts index d6959a50e..8fba423c3 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts | |||
@@ -155,7 +155,7 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy { | |||
155 | } | 155 | } |
156 | 156 | ||
157 | private loadElements () { | 157 | private loadElements () { |
158 | this.videoPlaylistService.getPlaylistVideos(this.videoPlaylistId, this.pagination) | 158 | this.videoPlaylistService.getPlaylistVideos({ videoPlaylistId: this.videoPlaylistId, componentPagination: this.pagination }) |
159 | .subscribe(({ total, data }) => { | 159 | .subscribe(({ total, data }) => { |
160 | this.playlistElements = this.playlistElements.concat(data) | 160 | this.playlistElements = this.playlistElements.concat(data) |
161 | this.pagination.totalItems = total | 161 | this.pagination.totalItems = total |