diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-17 10:56:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-17 10:56:27 +0200 |
commit | 7b87d2d5141d0eb48db2a3fd162208d6a79b2035 (patch) | |
tree | 6c7b40ae79671fa2cf1b8418092acca031006d07 /client/src/app/videos/video-list/video-recently-added.component.ts | |
parent | cc1561f9f7b33d739d66b23bacae23ea49f2fa12 (diff) | |
download | PeerTube-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.ts | 8 |
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' | |||
4 | import { NotificationsService } from 'angular2-notifications' | 4 | import { NotificationsService } from 'angular2-notifications' |
5 | import { AuthService } from '../../core/auth' | 5 | import { AuthService } from '../../core/auth' |
6 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 6 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' |
7 | import { SortField } from '../../shared/video/sort-field.type' | 7 | import { VideoSortField } from '../../shared/video/sort-field.type' |
8 | import { VideoService } from '../../shared/video/video.service' | 8 | import { VideoService } from '../../shared/video/video.service' |
9 | import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' | ||
10 | import * 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' | |||
17 | export class VideoRecentlyAddedComponent extends AbstractVideoList implements OnInit, OnDestroy { | 15 | export 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 | } |