mirror of https://github.com/Chocobozzz/PeerTube
Fix trending days display on first load
This commit is contained in:
parent
0c5892764e
commit
572b8e02e2
|
@ -39,6 +39,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
|
|||
|
||||
this.generateSyndicationList()
|
||||
|
||||
this.serverService.configLoaded.subscribe(
|
||||
() => {
|
||||
const trendingDays = this.serverService.getConfig().trending.videos.intervalDays
|
||||
|
||||
if (trendingDays === 1) {
|
||||
|
@ -51,6 +53,7 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
|
|||
{ days: trendingDays }
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
ngOnDestroy () {
|
||||
|
|
Loading…
Reference in New Issue