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/shared | |
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/shared')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist.service.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts index 0a01af593..76835b9fc 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts | |||
@@ -256,12 +256,12 @@ export class VideoPlaylistService { | |||
256 | ) | 256 | ) |
257 | } | 257 | } |
258 | 258 | ||
259 | getPlaylistVideos ( | 259 | getPlaylistVideos (options: { |
260 | videoPlaylistId: number | string, | 260 | videoPlaylistId: number | string |
261 | componentPagination: ComponentPaginationLight | 261 | componentPagination: ComponentPaginationLight |
262 | ): Observable<ResultList<VideoPlaylistElement>> { | 262 | }): Observable<ResultList<VideoPlaylistElement>> { |
263 | const path = VideoPlaylistService.BASE_VIDEO_PLAYLIST_URL + videoPlaylistId + '/videos' | 263 | const path = VideoPlaylistService.BASE_VIDEO_PLAYLIST_URL + options.videoPlaylistId + '/videos' |
264 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) | 264 | const pagination = this.restService.componentPaginationToRestPagination(options.componentPagination) |
265 | 265 | ||
266 | let params = new HttpParams() | 266 | let params = new HttpParams() |
267 | params = this.restService.addRestGetParams(params, pagination) | 267 | params = this.restService.addRestGetParams(params, pagination) |