diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-04 13:31:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-04 15:45:44 +0200 |
commit | 2989628b7913383b39ac34c7db8666a21f8e5037 (patch) | |
tree | ac7759177c04e524e7845143fd685aefb49e810e /client/src/app/shared/shared-video-miniature/abstract-video-list.ts | |
parent | 8e08d415f9473b6b72fef698729453e726da16e7 (diff) | |
download | PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.gz PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.zst PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.zip |
Use HTML config when possible
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, |