diff options
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.ts | 25 |
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 @@ | |||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 1 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { immutableAssign } from '@app/shared/misc/utils' | 3 | import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
4 | import { AuthService } from '../../core/auth' | ||
5 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | ||
6 | import { VideoSortField } from '../../shared/video/sort-field.type' | ||
7 | import { VideoService } from '../../shared/video/video.service' | ||
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
10 | import { OwnerDisplayType } from '@app/shared/video/video-miniature.component' | ||
11 | import { Notifier, ServerService } from '@app/core' | ||
12 | import { HooksService } from '@app/core/plugins/hooks.service' | 4 | import { HooksService } from '@app/core/plugins/hooks.service' |
13 | import { UserService } from '@app/shared' | 5 | import { immutableAssign } from '@app/helpers' |
14 | import { LocalStorageService } from '@app/shared/misc/storage.service' | 6 | import { VideoService } from '@app/shared/shared-main' |
7 | import { UserSubscriptionService } from '@app/shared/shared-user-subscription' | ||
8 | import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature' | ||
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
10 | import { 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 | }) |
21 | export class VideoUserSubscriptionsComponent extends AbstractVideoList implements OnInit, OnDestroy { | 17 | export 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', |