diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 11:57:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 11:57:49 +0200 |
commit | d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb (patch) | |
tree | 549b14b842de296efed846a11b3681efe08cfa9e /client/src/app/videos/video-list | |
parent | 91f6f169b1110eeae6ebf5c387f4204b0d07703c (diff) | |
download | PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.tar.gz PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.tar.zst PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.zip |
Move to HttpClient and PrimeNG data table
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r-- | client/src/app/videos/video-list/video-list.component.ts | 11 |
1 files changed, 6 insertions, 5 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 4ac539960..590632063 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts | |||
@@ -8,11 +8,12 @@ import { NotificationsService } from 'angular2-notifications' | |||
8 | import { | 8 | import { |
9 | SortField, | 9 | SortField, |
10 | Video, | 10 | Video, |
11 | VideoService | 11 | VideoService, |
12 | VideoPagination | ||
12 | } from '../shared' | 13 | } from '../shared' |
13 | import { AuthService, AuthUser } from '../../core' | 14 | import { AuthService, AuthUser } from '../../core' |
14 | import { RestPagination, Search, SearchField } from '../../shared' | 15 | import { Search, SearchField, SearchService } from '../../shared' |
15 | import { SearchService } from '../../shared' | 16 | import { } from '../../shared' |
16 | 17 | ||
17 | @Component({ | 18 | @Component({ |
18 | selector: 'my-videos-list', | 19 | selector: 'my-videos-list', |
@@ -21,7 +22,7 @@ import { SearchService } from '../../shared' | |||
21 | }) | 22 | }) |
22 | export class VideoListComponent implements OnInit, OnDestroy { | 23 | export class VideoListComponent implements OnInit, OnDestroy { |
23 | loading: BehaviorSubject<boolean> = new BehaviorSubject(false) | 24 | loading: BehaviorSubject<boolean> = new BehaviorSubject(false) |
24 | pagination: RestPagination = { | 25 | pagination: VideoPagination = { |
25 | currentPage: 1, | 26 | currentPage: 1, |
26 | itemsPerPage: 25, | 27 | itemsPerPage: 25, |
27 | totalItems: null | 28 | totalItems: null |
@@ -152,6 +153,6 @@ export class VideoListComponent implements OnInit, OnDestroy { | |||
152 | 153 | ||
153 | private navigateToNewParams () { | 154 | private navigateToNewParams () { |
154 | const routeParams = this.buildRouteParams() | 155 | const routeParams = this.buildRouteParams() |
155 | this.router.navigate(['/videos/list', routeParams]) | 156 | this.router.navigate([ '/videos/list', routeParams ]) |
156 | } | 157 | } |
157 | } | 158 | } |