aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-trending.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-18 15:31:54 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 15:40:59 +0100
commitba430d7516bc5b1324b60571ba7594460969b7fb (patch)
treedf5c6952c82f49a94c0a884bbc97d4a0cbd9f867 /client/src/app/videos/video-list/video-trending.component.ts
parent5dfb7c1dec8222b0bbccac5b56ad46da1438747e (diff)
downloadPeerTube-ba430d7516bc5b1324b60571ba7594460969b7fb.tar.gz
PeerTube-ba430d7516bc5b1324b60571ba7594460969b7fb.tar.zst
PeerTube-ba430d7516bc5b1324b60571ba7594460969b7fb.zip
Lazy load static objects
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.ts6
1 files changed, 3 insertions, 3 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
index 19324da63..bc88679fa 100644
--- a/client/src/app/videos/video-list/video-trending.component.ts
+++ b/client/src/app/videos/video-list/video-trending.component.ts
@@ -40,9 +40,9 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
40 40
41 this.generateSyndicationList() 41 this.generateSyndicationList()
42 42
43 this.serverService.configLoaded.subscribe( 43 this.serverService.getConfig().subscribe(
44 () => { 44 config => {
45 const trendingDays = this.serverService.getConfig().trending.videos.intervalDays 45 const trendingDays = config.trending.videos.intervalDays
46 46
47 if (trendingDays === 1) { 47 if (trendingDays === 1) {
48 this.titlePage = this.i18n('Trending for the last 24 hours') 48 this.titlePage = this.i18n('Trending for the last 24 hours')