diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-01 14:46:22 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-01 14:46:22 +0100 |
commit | 9bf9d2a5c223bf006496ae7adf0c0bd7a7975108 (patch) | |
tree | 7e72814af43176ad96841046a9310af001d23a14 /client/src/app/videos/video-list/video-trending.component.ts | |
parent | 26c6ee80d0fecfce595e8970f15717560b4f4ceb (diff) | |
download | PeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.tar.gz PeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.tar.zst PeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.zip |
Begin videos list new design
Diffstat (limited to 'client/src/app/videos/video-list/video-trending.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-trending.component.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts new file mode 100644 index 000000000..b97966c12 --- /dev/null +++ b/client/src/app/videos/video-list/video-trending.component.ts | |||
@@ -0,0 +1,33 @@ | |||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | ||
2 | import { ActivatedRoute, Router } from '@angular/router' | ||
3 | import { NotificationsService } from 'angular2-notifications' | ||
4 | import { VideoService } from '../shared' | ||
5 | import { AbstractVideoList } from './shared' | ||
6 | |||
7 | @Component({ | ||
8 | selector: 'my-videos-trending', | ||
9 | styleUrls: [ './shared/abstract-video-list.scss' ], | ||
10 | templateUrl: './shared/abstract-video-list.html' | ||
11 | }) | ||
12 | export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { | ||
13 | titlePage = 'Trending' | ||
14 | |||
15 | constructor (protected router: Router, | ||
16 | protected route: ActivatedRoute, | ||
17 | protected notificationsService: NotificationsService, | ||
18 | private videoService: VideoService) { | ||
19 | super() | ||
20 | } | ||
21 | |||
22 | ngOnInit () { | ||
23 | super.ngOnInit() | ||
24 | } | ||
25 | |||
26 | ngOnDestroy () { | ||
27 | super.ngOnDestroy() | ||
28 | } | ||
29 | |||
30 | getVideosObservable () { | ||
31 | return this.videoService.getVideos(this.pagination, this.sort) | ||
32 | } | ||
33 | } | ||