diff options
Diffstat (limited to 'client/src/app/videos/video-list/video-recently-added.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-recently-added.component.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts index f99c8abb6..80cef813e 100644 --- a/client/src/app/videos/video-list/video-recently-added.component.ts +++ b/client/src/app/videos/video-list/video-recently-added.component.ts | |||
@@ -1,6 +1,5 @@ | |||
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 { Location } from '@angular/common' | ||
4 | import { immutableAssign } from '@app/shared/misc/utils' | 3 | import { immutableAssign } from '@app/shared/misc/utils' |
5 | import { AuthService } from '../../core/auth' | 4 | import { AuthService } from '../../core/auth' |
6 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 5 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' |
@@ -8,7 +7,7 @@ import { VideoSortField } from '../../shared/video/sort-field.type' | |||
8 | import { VideoService } from '../../shared/video/video.service' | 7 | import { VideoService } from '../../shared/video/video.service' |
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | 8 | import { I18n } from '@ngx-translate/i18n-polyfill' |
10 | import { ScreenService } from '@app/shared/misc/screen.service' | 9 | import { ScreenService } from '@app/shared/misc/screen.service' |
11 | import { Notifier } from '@app/core' | 10 | import { Notifier, ServerService } from '@app/core' |
12 | 11 | ||
13 | @Component({ | 12 | @Component({ |
14 | selector: 'my-videos-recently-added', | 13 | selector: 'my-videos-recently-added', |
@@ -17,17 +16,16 @@ import { Notifier } from '@app/core' | |||
17 | }) | 16 | }) |
18 | export class VideoRecentlyAddedComponent extends AbstractVideoList implements OnInit, OnDestroy { | 17 | export class VideoRecentlyAddedComponent extends AbstractVideoList implements OnInit, OnDestroy { |
19 | titlePage: string | 18 | titlePage: string |
20 | currentRoute = '/videos/recently-added' | ||
21 | sort: VideoSortField = '-publishedAt' | 19 | sort: VideoSortField = '-publishedAt' |
22 | 20 | ||
23 | constructor ( | 21 | constructor ( |
24 | protected router: Router, | ||
25 | protected route: ActivatedRoute, | 22 | protected route: ActivatedRoute, |
26 | protected location: Location, | 23 | protected serverService: ServerService, |
24 | protected router: Router, | ||
27 | protected notifier: Notifier, | 25 | protected notifier: Notifier, |
28 | protected authService: AuthService, | 26 | protected authService: AuthService, |
29 | protected i18n: I18n, | ||
30 | protected screenService: ScreenService, | 27 | protected screenService: ScreenService, |
28 | private i18n: I18n, | ||
31 | private videoService: VideoService | 29 | private videoService: VideoService |
32 | ) { | 30 | ) { |
33 | super() | 31 | super() |