diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-21 16:49:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-02 11:45:02 +0200 |
commit | 489290b8b16bede6ddfb773adad55dee6471ccfd (patch) | |
tree | 8d3bb73c80df18f1e4d15b23a7e4080a6bc5985e /client/src/app/videos/video-list/video-local.component.ts | |
parent | 7ccddd7b5250bd25a917a6e77e58b87b9484a2a4 (diff) | |
download | PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.gz PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.zst PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.zip |
Restore videos list components
Diffstat (limited to 'client/src/app/videos/video-list/video-local.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-local.component.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts index c0be4b885..13d4023c2 100644 --- a/client/src/app/videos/video-list/video-local.component.ts +++ b/client/src/app/videos/video-list/video-local.component.ts | |||
@@ -1,7 +1,6 @@ | |||
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 { immutableAssign } from '@app/shared/misc/utils' |
4 | import { Location } from '@angular/common' | ||
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' |
7 | import { VideoSortField } from '../../shared/video/sort-field.type' | 6 | import { VideoSortField } from '../../shared/video/sort-field.type' |
@@ -10,7 +9,7 @@ import { VideoFilter } from '../../../../../shared/models/videos/video-query.typ | |||
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | 9 | import { I18n } from '@ngx-translate/i18n-polyfill' |
11 | import { ScreenService } from '@app/shared/misc/screen.service' | 10 | import { ScreenService } from '@app/shared/misc/screen.service' |
12 | import { UserRight } from '../../../../../shared/models/users' | 11 | import { UserRight } from '../../../../../shared/models/users' |
13 | import { Notifier } from '@app/core' | 12 | import { Notifier, ServerService } from '@app/core' |
14 | 13 | ||
15 | @Component({ | 14 | @Component({ |
16 | selector: 'my-videos-local', | 15 | selector: 'my-videos-local', |
@@ -19,18 +18,17 @@ import { Notifier } from '@app/core' | |||
19 | }) | 18 | }) |
20 | export class VideoLocalComponent extends AbstractVideoList implements OnInit, OnDestroy { | 19 | export class VideoLocalComponent extends AbstractVideoList implements OnInit, OnDestroy { |
21 | titlePage: string | 20 | titlePage: string |
22 | currentRoute = '/videos/local' | ||
23 | sort = '-publishedAt' as VideoSortField | 21 | sort = '-publishedAt' as VideoSortField |
24 | filter: VideoFilter = 'local' | 22 | filter: VideoFilter = 'local' |
25 | 23 | ||
26 | constructor ( | 24 | constructor ( |
27 | protected router: Router, | 25 | protected router: Router, |
26 | protected serverService: ServerService, | ||
28 | protected route: ActivatedRoute, | 27 | protected route: ActivatedRoute, |
29 | protected notifier: Notifier, | 28 | protected notifier: Notifier, |
30 | protected authService: AuthService, | 29 | protected authService: AuthService, |
31 | protected location: Location, | ||
32 | protected i18n: I18n, | ||
33 | protected screenService: ScreenService, | 30 | protected screenService: ScreenService, |
31 | private i18n: I18n, | ||
34 | private videoService: VideoService | 32 | private videoService: VideoService |
35 | ) { | 33 | ) { |
36 | super() | 34 | super() |