diff options
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/abstract-video-list.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.ts b/client/src/app/shared/shared-video-miniature/abstract-video-list.ts index f83380513..bf433aabd 100644 --- a/client/src/app/shared/shared-video-miniature/abstract-video-list.ts +++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.ts | |||
@@ -25,7 +25,7 @@ import { | |||
25 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' | 25 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' |
26 | import { GlobalIconName } from '@app/shared/shared-icons' | 26 | import { GlobalIconName } from '@app/shared/shared-icons' |
27 | import { isLastMonth, isLastWeek, isThisMonth, isToday, isYesterday } from '@shared/core-utils/miscs/date' | 27 | import { isLastMonth, isLastWeek, isThisMonth, isToday, isYesterday } from '@shared/core-utils/miscs/date' |
28 | import { ServerConfig, UserRight, VideoFilter, VideoSortField } from '@shared/models' | 28 | import { HTMLServerConfig, UserRight, VideoFilter, VideoSortField } from '@shared/models' |
29 | import { NSFWPolicyType } from '@shared/models/videos/nsfw-policy.type' | 29 | import { NSFWPolicyType } from '@shared/models/videos/nsfw-policy.type' |
30 | import { Syndication, Video } from '../shared-main' | 30 | import { Syndication, Video } from '../shared-main' |
31 | import { GenericHeaderComponent, VideoListHeaderComponent } from './video-list-header.component' | 31 | import { GenericHeaderComponent, VideoListHeaderComponent } from './video-list-header.component' |
@@ -100,7 +100,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, AfterConte | |||
100 | 100 | ||
101 | protected onUserLoadedSubject = new ReplaySubject<void>(1) | 101 | protected onUserLoadedSubject = new ReplaySubject<void>(1) |
102 | 102 | ||
103 | protected serverConfig: ServerConfig | 103 | protected serverConfig: HTMLServerConfig |
104 | 104 | ||
105 | protected abstract notifier: Notifier | 105 | protected abstract notifier: Notifier |
106 | protected abstract authService: AuthService | 106 | protected abstract authService: AuthService |
@@ -126,9 +126,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, AfterConte | |||
126 | abstract generateSyndicationList (): void | 126 | abstract generateSyndicationList (): void |
127 | 127 | ||
128 | ngOnInit () { | 128 | ngOnInit () { |
129 | this.serverConfig = this.serverService.getTmpConfig() | 129 | this.serverConfig = this.serverService.getHTMLConfig() |
130 | this.serverService.getConfig() | ||
131 | .subscribe(config => this.serverConfig = config) | ||
132 | 130 | ||
133 | this.groupedDateLabels = { | 131 | this.groupedDateLabels = { |
134 | [GroupDate.UNKNOWN]: null, | 132 | [GroupDate.UNKNOWN]: null, |