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/video-miniature.component.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/video-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-miniature.component.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts index aac55a6e9..fc066846a 100644 --- a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts | |||
@@ -11,7 +11,7 @@ import { | |||
11 | Output | 11 | Output |
12 | } from '@angular/core' | 12 | } from '@angular/core' |
13 | import { AuthService, ScreenService, ServerService, User } from '@app/core' | 13 | import { AuthService, ScreenService, ServerService, User } from '@app/core' |
14 | import { ServerConfig, VideoPlaylistType, VideoPrivacy, VideoState } from '@shared/models' | 14 | import { HTMLServerConfig, VideoPlaylistType, VideoPrivacy, VideoState } from '@shared/models' |
15 | import { ActorAvatarSize } from '../shared-actor-image/actor-avatar.component' | 15 | import { ActorAvatarSize } from '../shared-actor-image/actor-avatar.component' |
16 | import { Video } from '../shared-main' | 16 | import { Video } from '../shared-main' |
17 | import { VideoPlaylistService } from '../shared-video-playlist' | 17 | import { VideoPlaylistService } from '../shared-video-playlist' |
@@ -74,7 +74,7 @@ export class VideoMiniatureComponent implements OnInit { | |||
74 | mute: true | 74 | mute: true |
75 | } | 75 | } |
76 | showActions = false | 76 | showActions = false |
77 | serverConfig: ServerConfig | 77 | serverConfig: HTMLServerConfig |
78 | 78 | ||
79 | addToWatchLaterText: string | 79 | addToWatchLaterText: string |
80 | addedToWatchLaterText: string | 80 | addedToWatchLaterText: string |
@@ -106,12 +106,8 @@ export class VideoMiniatureComponent implements OnInit { | |||
106 | } | 106 | } |
107 | 107 | ||
108 | ngOnInit () { | 108 | ngOnInit () { |
109 | this.serverConfig = this.serverService.getTmpConfig() | 109 | this.serverConfig = this.serverService.getHTMLConfig() |
110 | this.serverService.getConfig() | 110 | this.buildVideoLink() |
111 | .subscribe(config => { | ||
112 | this.serverConfig = config | ||
113 | this.buildVideoLink() | ||
114 | }) | ||
115 | 111 | ||
116 | this.setUpBy() | 112 | this.setUpBy() |
117 | 113 | ||