aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts11
1 files changed, 9 insertions, 2 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 8fba423c3..c9739b6cc 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
@@ -2,7 +2,7 @@ import { Subject, Subscription } from 'rxjs'
2import { CdkDragDrop } from '@angular/cdk/drag-drop' 2import { CdkDragDrop } from '@angular/cdk/drag-drop'
3import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' 3import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'
4import { ActivatedRoute, Router } from '@angular/router' 4import { ActivatedRoute, Router } from '@angular/router'
5import { ComponentPagination, ConfirmService, Notifier, ScreenService } from '@app/core' 5import { ComponentPagination, ConfirmService, HooksService, Notifier, ScreenService } from '@app/core'
6import { DropdownAction } from '@app/shared/shared-main' 6import { DropdownAction } from '@app/shared/shared-main'
7import { VideoShareComponent } from '@app/shared/shared-share-modal' 7import { VideoShareComponent } from '@app/shared/shared-share-modal'
8import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist' 8import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist'
@@ -32,6 +32,7 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy {
32 private paramsSub: Subscription 32 private paramsSub: Subscription
33 33
34 constructor ( 34 constructor (
35 private hooks: HooksService,
35 private notifier: Notifier, 36 private notifier: Notifier,
36 private router: Router, 37 private router: Router,
37 private confirmService: ConfirmService, 38 private confirmService: ConfirmService,
@@ -155,7 +156,13 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy {
155 } 156 }
156 157
157 private loadElements () { 158 private loadElements () {
158 this.videoPlaylistService.getPlaylistVideos({ videoPlaylistId: this.videoPlaylistId, componentPagination: this.pagination }) 159 this.hooks.wrapObsFun(
160 this.videoPlaylistService.getPlaylistVideos.bind(this.videoPlaylistService),
161 { videoPlaylistId: this.videoPlaylistId, componentPagination: this.pagination },
162 'my-library',
163 'filter:api.my-library.video-playlist-elements.list.params',
164 'filter:api.my-library.video-playlist-elements.list.result'
165 )
159 .subscribe(({ total, data }) => { 166 .subscribe(({ total, data }) => {
160 this.playlistElements = this.playlistElements.concat(data) 167 this.playlistElements = this.playlistElements.concat(data)
161 this.pagination.totalItems = total 168 this.pagination.totalItems = total