Fix trending days display on first load

pull/1567/head
Chocobozzz 2019-01-21 17:11:21 +01:00
parent 0c5892764e
commit 572b8e02e2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 14 additions and 11 deletions

View File

@ -39,6 +39,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
this.generateSyndicationList() this.generateSyndicationList()
this.serverService.configLoaded.subscribe(
() => {
const trendingDays = this.serverService.getConfig().trending.videos.intervalDays const trendingDays = this.serverService.getConfig().trending.videos.intervalDays
if (trendingDays === 1) { if (trendingDays === 1) {
@ -51,6 +53,7 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
{ days: trendingDays } { days: trendingDays }
) )
} }
})
} }
ngOnDestroy () { ngOnDestroy () {