diff options
Diffstat (limited to 'client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts index 86c281a1e..57eab4dfd 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | |||
@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, In | |||
2 | import { AuthService, Notifier, ServerService } from '@app/core' | 2 | import { AuthService, Notifier, ServerService } from '@app/core' |
3 | import { Video } from '@app/shared/shared-main' | 3 | import { Video } from '@app/shared/shared-main' |
4 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' |
5 | import { ServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate } from '@shared/models' | 5 | import { HTMLServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate } from '@shared/models' |
6 | import { secondsToTime } from '../../../assets/player/utils' | 6 | import { secondsToTime } from '../../../assets/player/utils' |
7 | import { VideoPlaylistElement } from './video-playlist-element.model' | 7 | import { VideoPlaylistElement } from './video-playlist-element.model' |
8 | import { VideoPlaylist } from './video-playlist.model' | 8 | import { VideoPlaylist } from './video-playlist.model' |
@@ -37,7 +37,7 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
37 | stopTimestamp: number | 37 | stopTimestamp: number |
38 | } = {} as any | 38 | } = {} as any |
39 | 39 | ||
40 | private serverConfig: ServerConfig | 40 | private serverConfig: HTMLServerConfig |
41 | 41 | ||
42 | constructor ( | 42 | constructor ( |
43 | private authService: AuthService, | 43 | private authService: AuthService, |
@@ -48,12 +48,7 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
48 | ) {} | 48 | ) {} |
49 | 49 | ||
50 | ngOnInit (): void { | 50 | ngOnInit (): void { |
51 | this.serverConfig = this.serverService.getTmpConfig() | 51 | this.serverConfig = this.serverService.getHTMLConfig() |
52 | this.serverService.getConfig() | ||
53 | .subscribe(config => { | ||
54 | this.serverConfig = config | ||
55 | this.cdr.detectChanges() | ||
56 | }) | ||
57 | } | 52 | } |
58 | 53 | ||
59 | isUnavailable (e: VideoPlaylistElement) { | 54 | isUnavailable (e: VideoPlaylistElement) { |