mirror of https://github.com/Chocobozzz/PeerTube
Fix trending days display on first load
parent
0c5892764e
commit
572b8e02e2
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue