aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-recently-added.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-17 10:56:27 +0200
committerChocobozzz <me@florianbigard.com>2018-04-17 10:56:27 +0200
commit7b87d2d5141d0eb48db2a3fd162208d6a79b2035 (patch)
tree6c7b40ae79671fa2cf1b8418092acca031006d07 /client/src/app/videos/video-list/video-recently-added.component.ts
parentcc1561f9f7b33d739d66b23bacae23ea49f2fa12 (diff)
downloadPeerTube-7b87d2d5141d0eb48db2a3fd162208d6a79b2035.tar.gz
PeerTube-7b87d2d5141d0eb48db2a3fd162208d6a79b2035.tar.zst
PeerTube-7b87d2d5141d0eb48db2a3fd162208d6a79b2035.zip
Handle sort in rss
Diffstat (limited to 'client/src/app/videos/video-list/video-recently-added.component.ts')
-rw-r--r--client/src/app/videos/video-list/video-recently-added.component.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts
index 3b8108b00..cca35d0f5 100644
--- a/client/src/app/videos/video-list/video-recently-added.component.ts
+++ b/client/src/app/videos/video-list/video-recently-added.component.ts
@@ -4,10 +4,8 @@ import { immutableAssign } from '@app/shared/misc/utils'
4import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
5import { AuthService } from '../../core/auth' 5import { AuthService } from '../../core/auth'
6import { AbstractVideoList } from '../../shared/video/abstract-video-list' 6import { AbstractVideoList } from '../../shared/video/abstract-video-list'
7import { SortField } from '../../shared/video/sort-field.type' 7import { VideoSortField } from '../../shared/video/sort-field.type'
8import { VideoService } from '../../shared/video/video.service' 8import { VideoService } from '../../shared/video/video.service'
9import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum'
10import * as url from 'url'
11 9
12@Component({ 10@Component({
13 selector: 'my-videos-recently-added', 11 selector: 'my-videos-recently-added',
@@ -17,7 +15,7 @@ import * as url from 'url'
17export class VideoRecentlyAddedComponent extends AbstractVideoList implements OnInit, OnDestroy { 15export class VideoRecentlyAddedComponent extends AbstractVideoList implements OnInit, OnDestroy {
18 titlePage = 'Recently added' 16 titlePage = 'Recently added'
19 currentRoute = '/videos/recently-added' 17 currentRoute = '/videos/recently-added'
20 sort: SortField = '-createdAt' 18 sort: VideoSortField = '-createdAt'
21 19
22 constructor (protected router: Router, 20 constructor (protected router: Router,
23 protected route: ActivatedRoute, 21 protected route: ActivatedRoute,
@@ -44,6 +42,6 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On
44 } 42 }
45 43
46 generateSyndicationList () { 44 generateSyndicationList () {
47 this.syndicationItems = this.videoService.getVideoFeedUrls() 45 this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort)
48 } 46 }
49} 47}