X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideo-list%2Fvideo-list.component.ts;h=d2f0ae0450ef4d19d7ebbc2a9f6cdc646653ccd7;hb=bcd9f81eff05ffd930c5d8175fb907d4d371432a;hp=4714ce01eb690c77cd50d9c4536569fb1d15d6f2;hpb=d412e80e5f748f92118541a5334c14ebd4a90881;p=github%2FChocobozzz%2FPeerTube.git 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 @@ -import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core' +import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { Subscription } from 'rxjs/Subscription' import { BehaviorSubject } from 'rxjs/BehaviorSubject' @@ -11,7 +11,6 @@ import { VideoService, VideoPagination } from '../shared' -import { AuthService, AuthUser } from '../../core' import { Search, SearchField, SearchService } from '../../shared' @Component({ @@ -27,7 +26,6 @@ export class VideoListComponent implements OnInit, OnDestroy { totalItems: null } sort: SortField - user: AuthUser = null videos: Video[] = [] private search: Search @@ -36,8 +34,6 @@ export class VideoListComponent implements OnInit, OnDestroy { constructor ( private notificationsService: NotificationsService, - private authService: AuthService, - private changeDetector: ChangeDetectorRef, private router: Router, private route: ActivatedRoute, private videoService: VideoService, @@ -45,10 +41,6 @@ export class VideoListComponent implements OnInit, OnDestroy { ) {} ngOnInit () { - if (this.authService.isLoggedIn()) { - this.user = AuthUser.load() - } - // Subscribe to route changes this.subActivatedRoute = this.route.params.subscribe(routeParams => { this.loadRouteParams(routeParams)