diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-09 21:45:21 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-09 21:45:21 +0200 |
commit | 7da18e4420c4b71a8ecfda07f39324fbfec081c3 (patch) | |
tree | 2755feedd730a78cdc407e7a79bcbfce3ebe71c8 /client/src/app/videos | |
parent | 68a3b9f2aacb0225ae8b883b561b144bac339cbd (diff) | |
download | PeerTube-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.ts | 6 |
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'; |
15 | import { AuthService, Search, SearchField, User } from '../../shared'; | 15 | import { AuthService, AuthUser, Search, SearchField } from '../../shared'; |
16 | import { VideoMiniatureComponent } from './video-miniature.component'; | 16 | import { VideoMiniatureComponent } from './video-miniature.component'; |
17 | import { VideoSortComponent } from './video-sort.component'; | 17 | import { VideoSortComponent } from './video-sort.component'; |
18 | import { SearchService } from '../../shared'; | 18 | import { 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 |