aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-09 21:45:21 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-09 21:45:21 +0200
commit7da18e4420c4b71a8ecfda07f39324fbfec081c3 (patch)
tree2755feedd730a78cdc407e7a79bcbfce3ebe71c8 /client/src/app/videos
parent68a3b9f2aacb0225ae8b883b561b144bac339cbd (diff)
downloadPeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.tar.gz
PeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.tar.zst
PeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.zip
Client: add user management
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/video-list/video-list.component.ts6
1 files changed, 3 insertions, 3 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 5691d684e..062340ec5 100644
--- a/client/src/app/videos/video-list/video-list.component.ts
+++ b/client/src/app/videos/video-list/video-list.component.ts
@@ -12,7 +12,7 @@ import {
12 Video, 12 Video,
13 VideoService 13 VideoService
14} from '../shared'; 14} from '../shared';
15import { AuthService, Search, SearchField, User } from '../../shared'; 15import { AuthService, AuthUser, Search, SearchField } from '../../shared';
16import { VideoMiniatureComponent } from './video-miniature.component'; 16import { VideoMiniatureComponent } from './video-miniature.component';
17import { VideoSortComponent } from './video-sort.component'; 17import { VideoSortComponent } from './video-sort.component';
18import { SearchService } from '../../shared'; 18import { SearchService } from '../../shared';
@@ -33,7 +33,7 @@ export class VideoListComponent implements OnInit, OnDestroy {
33 totalItems: null 33 totalItems: null
34 }; 34 };
35 sort: SortField; 35 sort: SortField;
36 user: User = null; 36 user: AuthUser = null;
37 videos: Video[] = []; 37 videos: Video[] = [];
38 38
39 private search: Search; 39 private search: Search;
@@ -51,7 +51,7 @@ export class VideoListComponent implements OnInit, OnDestroy {
51 51
52 ngOnInit() { 52 ngOnInit() {
53 if (this.authService.isLoggedIn()) { 53 if (this.authService.isLoggedIn()) {
54 this.user = User.load(); 54 this.user = AuthUser.load();
55 } 55 }
56 56
57 // Subscribe to route changes 57 // Subscribe to route changes