diff options
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r-- | client/src/app/videos/video-list/video-list.component.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts index 4714ce01e..d2f0ae045 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ChangeDetectorRef, 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 { Subscription } from 'rxjs/Subscription' | 3 | import { Subscription } from 'rxjs/Subscription' |
4 | import { BehaviorSubject } from 'rxjs/BehaviorSubject' | 4 | import { BehaviorSubject } from 'rxjs/BehaviorSubject' |
@@ -11,7 +11,6 @@ import { | |||
11 | VideoService, | 11 | VideoService, |
12 | VideoPagination | 12 | VideoPagination |
13 | } from '../shared' | 13 | } from '../shared' |
14 | import { AuthService, AuthUser } from '../../core' | ||
15 | import { Search, SearchField, SearchService } from '../../shared' | 14 | import { Search, SearchField, SearchService } from '../../shared' |
16 | 15 | ||
17 | @Component({ | 16 | @Component({ |
@@ -27,7 +26,6 @@ export class VideoListComponent implements OnInit, OnDestroy { | |||
27 | totalItems: null | 26 | totalItems: null |
28 | } | 27 | } |
29 | sort: SortField | 28 | sort: SortField |
30 | user: AuthUser = null | ||
31 | videos: Video[] = [] | 29 | videos: Video[] = [] |
32 | 30 | ||
33 | private search: Search | 31 | private search: Search |
@@ -36,8 +34,6 @@ export class VideoListComponent implements OnInit, OnDestroy { | |||
36 | 34 | ||
37 | constructor ( | 35 | constructor ( |
38 | private notificationsService: NotificationsService, | 36 | private notificationsService: NotificationsService, |
39 | private authService: AuthService, | ||
40 | private changeDetector: ChangeDetectorRef, | ||
41 | private router: Router, | 37 | private router: Router, |
42 | private route: ActivatedRoute, | 38 | private route: ActivatedRoute, |
43 | private videoService: VideoService, | 39 | private videoService: VideoService, |
@@ -45,10 +41,6 @@ export class VideoListComponent implements OnInit, OnDestroy { | |||
45 | ) {} | 41 | ) {} |
46 | 42 | ||
47 | ngOnInit () { | 43 | ngOnInit () { |
48 | if (this.authService.isLoggedIn()) { | ||
49 | this.user = AuthUser.load() | ||
50 | } | ||
51 | |||
52 | // Subscribe to route changes | 44 | // Subscribe to route changes |
53 | this.subActivatedRoute = this.route.params.subscribe(routeParams => { | 45 | this.subActivatedRoute = this.route.params.subscribe(routeParams => { |
54 | this.loadRouteParams(routeParams) | 46 | this.loadRouteParams(routeParams) |