aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list
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
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')
-rw-r--r--client/src/app/videos/video-list/video-most-liked.component.ts7
-rw-r--r--client/src/app/videos/video-list/video-trending.component.ts6
2 files changed, 5 insertions, 8 deletions
diff --git a/client/src/app/videos/video-list/video-most-liked.component.ts b/client/src/app/videos/video-list/video-most-liked.component.ts
index aff8413eb..f94a7da04 100644
--- a/client/src/app/videos/video-list/video-most-liked.component.ts
+++ b/client/src/app/videos/video-list/video-most-liked.component.ts
@@ -40,11 +40,8 @@ export class VideoMostLikedComponent extends AbstractVideoList implements OnInit
40 40
41 this.generateSyndicationList() 41 this.generateSyndicationList()
42 42
43 this.serverService.configLoaded.subscribe( 43 this.titlePage = this.i18n('Most liked videos')
44 () => { 44 this.titleTooltip = this.i18n('Videos that have the higher number of likes.')
45 this.titlePage = this.i18n('Most liked videos')
46 this.titleTooltip = this.i18n('Videos that have the higher number of likes.')
47 })
48 } 45 }
49 46
50 getVideosObservable (page: number) { 47 getVideosObservable (page: number) {
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')