aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-user-subscriptions.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/video-list/video-user-subscriptions.component.ts')
-rw-r--r--client/src/app/videos/video-list/video-user-subscriptions.component.ts25
1 files changed, 11 insertions, 14 deletions
diff --git a/client/src/app/videos/video-list/video-user-subscriptions.component.ts b/client/src/app/videos/video-list/video-user-subscriptions.component.ts
index 036fd8dcb..41ad9b277 100644
--- a/client/src/app/videos/video-list/video-user-subscriptions.component.ts
+++ b/client/src/app/videos/video-list/video-user-subscriptions.component.ts
@@ -1,22 +1,18 @@
1import { Component, OnDestroy, OnInit } from '@angular/core' 1import { Component, OnDestroy, OnInit } from '@angular/core'
2import { ActivatedRoute, Router } from '@angular/router' 2import { ActivatedRoute, Router } from '@angular/router'
3import { immutableAssign } from '@app/shared/misc/utils' 3import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
4import { AuthService } from '../../core/auth'
5import { AbstractVideoList } from '../../shared/video/abstract-video-list'
6import { VideoSortField } from '../../shared/video/sort-field.type'
7import { VideoService } from '../../shared/video/video.service'
8import { I18n } from '@ngx-translate/i18n-polyfill'
9import { ScreenService } from '@app/shared/misc/screen.service'
10import { OwnerDisplayType } from '@app/shared/video/video-miniature.component'
11import { Notifier, ServerService } from '@app/core'
12import { HooksService } from '@app/core/plugins/hooks.service' 4import { HooksService } from '@app/core/plugins/hooks.service'
13import { UserService } from '@app/shared' 5import { immutableAssign } from '@app/helpers'
14import { LocalStorageService } from '@app/shared/misc/storage.service' 6import { VideoService } from '@app/shared/shared-main'
7import { UserSubscriptionService } from '@app/shared/shared-user-subscription'
8import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature'
9import { I18n } from '@ngx-translate/i18n-polyfill'
10import { VideoSortField } from '@shared/models'
15 11
16@Component({ 12@Component({
17 selector: 'my-videos-user-subscriptions', 13 selector: 'my-videos-user-subscriptions',
18 styleUrls: [ '../../shared/video/abstract-video-list.scss' ], 14 styleUrls: [ '../../shared/shared-video-miniature/abstract-video-list.scss' ],
19 templateUrl: '../../shared/video/abstract-video-list.html' 15 templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html'
20}) 16})
21export class VideoUserSubscriptionsComponent extends AbstractVideoList implements OnInit, OnDestroy { 17export class VideoUserSubscriptionsComponent extends AbstractVideoList implements OnInit, OnDestroy {
22 titlePage: string 18 titlePage: string
@@ -34,6 +30,7 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
34 protected userService: UserService, 30 protected userService: UserService,
35 protected screenService: ScreenService, 31 protected screenService: ScreenService,
36 protected storageService: LocalStorageService, 32 protected storageService: LocalStorageService,
33 private userSubscription: UserSubscriptionService,
37 private videoService: VideoService, 34 private videoService: VideoService,
38 private hooks: HooksService 35 private hooks: HooksService
39 ) { 36 ) {
@@ -64,7 +61,7 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
64 } 61 }
65 62
66 return this.hooks.wrapObsFun( 63 return this.hooks.wrapObsFun(
67 this.videoService.getUserSubscriptionVideos.bind(this.videoService), 64 this.userSubscription.getUserSubscriptionVideos.bind(this.userSubscription),
68 params, 65 params,
69 'common', 66 'common',
70 'filter:api.user-subscriptions-videos.videos.list.params', 67 'filter:api.user-subscriptions-videos.videos.list.params',