aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-25 17:31:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 09:11:38 +0200
commitbcd9f81eff05ffd930c5d8175fb907d4d371432a (patch)
tree071c9bff7135ae968f329623b77a4835e1afcb59 /client/src/app/videos/video-list
parentd412e80e5f748f92118541a5334c14ebd4a90881 (diff)
downloadPeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.gz
PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.zst
PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.zip
Add channels to upload form
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r--client/src/app/videos/video-list/video-list.component.ts10
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 @@
1import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core' 1import { Component, OnDestroy, OnInit } from '@angular/core'
2import { ActivatedRoute, Router } from '@angular/router' 2import { ActivatedRoute, Router } from '@angular/router'
3import { Subscription } from 'rxjs/Subscription' 3import { Subscription } from 'rxjs/Subscription'
4import { BehaviorSubject } from 'rxjs/BehaviorSubject' 4import { BehaviorSubject } from 'rxjs/BehaviorSubject'
@@ -11,7 +11,6 @@ import {
11 VideoService, 11 VideoService,
12 VideoPagination 12 VideoPagination
13} from '../shared' 13} from '../shared'
14import { AuthService, AuthUser } from '../../core'
15import { Search, SearchField, SearchService } from '../../shared' 14import { 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)