]
this.paramsSub = this.route.params.subscribe(routeParams => {
- this.videoPlaylistId = routeParams[ 'videoPlaylistId' ]
+ this.videoPlaylistId = routeParams['videoPlaylistId']
this.loadElements()
this.loadPlaylistInfo()
* we add a delay to prevent unwanted drag&drop.
*
* @see {@link https://github.com/Chocobozzz/PeerTube/issues/2078}
- *
- * @returns {null|number} Null for no delay, or a number in milliseconds.
*/
getDragStartDelay (): null | number {
if (this.screenService.isInTouchScreen()) {
}
private loadElements () {
- this.videoPlaylistService.getPlaylistVideos(this.videoPlaylistId, this.pagination)
+ this.videoPlaylistService.getPlaylistVideos({ videoPlaylistId: this.videoPlaylistId, componentPagination: this.pagination })
.subscribe(({ total, data }) => {
this.playlistElements = this.playlistElements.concat(data)
this.pagination.totalItems = total