diff options
Diffstat (limited to 'client/src/app/+admin/overview/videos/video-list.component.ts')
-rw-r--r-- | client/src/app/+admin/overview/videos/video-list.component.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.ts index 31bf1707b..b0e476569 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.ts +++ b/client/src/app/+admin/overview/videos/video-list.component.ts | |||
@@ -7,6 +7,7 @@ import { AdvancedInputFilter } from '@app/shared/shared-forms' | |||
7 | import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' | 7 | import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' |
8 | import { VideoActionsDisplayType } from '@app/shared/shared-video-miniature' | 8 | import { VideoActionsDisplayType } from '@app/shared/shared-video-miniature' |
9 | import { UserRight, VideoPrivacy, VideoState, VideoStreamingPlaylistType } from '@shared/models' | 9 | import { UserRight, VideoPrivacy, VideoState, VideoStreamingPlaylistType } from '@shared/models' |
10 | import { VideoAdminService } from './video-admin.service' | ||
10 | 11 | ||
11 | @Component({ | 12 | @Component({ |
12 | selector: 'my-video-list', | 13 | selector: 'my-video-list', |
@@ -46,7 +47,8 @@ export class VideoListComponent extends RestTable implements OnInit { | |||
46 | private confirmService: ConfirmService, | 47 | private confirmService: ConfirmService, |
47 | private auth: AuthService, | 48 | private auth: AuthService, |
48 | private notifier: Notifier, | 49 | private notifier: Notifier, |
49 | private videoService: VideoService | 50 | private videoService: VideoService, |
51 | private videoAdminService: VideoAdminService | ||
50 | ) { | 52 | ) { |
51 | super() | 53 | super() |
52 | } | 54 | } |
@@ -58,7 +60,7 @@ export class VideoListComponent extends RestTable implements OnInit { | |||
58 | ngOnInit () { | 60 | ngOnInit () { |
59 | this.initialize() | 61 | this.initialize() |
60 | 62 | ||
61 | this.inputFilters = this.videoService.buildAdminInputFilter() | 63 | this.inputFilters = this.videoAdminService.buildAdminInputFilter() |
62 | 64 | ||
63 | this.bulkVideoActions = [ | 65 | this.bulkVideoActions = [ |
64 | [ | 66 | [ |
@@ -128,7 +130,7 @@ export class VideoListComponent extends RestTable implements OnInit { | |||
128 | 130 | ||
129 | this.loading = true | 131 | this.loading = true |
130 | 132 | ||
131 | this.videoService.getAdminVideos({ | 133 | this.videoAdminService.getAdminVideos({ |
132 | pagination: this.pagination, | 134 | pagination: this.pagination, |
133 | sort: this.sort, | 135 | sort: this.sort, |
134 | search: this.search | 136 | search: this.search |