diff options
Diffstat (limited to 'client/src/app/shared/shared-video-playlist')
4 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts index df3aeddb7..553930595 100644 --- a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts | |||
@@ -191,7 +191,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
191 | } | 191 | } |
192 | 192 | ||
193 | createPlaylist () { | 193 | createPlaylist () { |
194 | const displayName = this.form.value[ 'displayName' ] | 194 | const displayName = this.form.value['displayName'] |
195 | 195 | ||
196 | const videoPlaylistCreate: VideoPlaylistCreate = { | 196 | const videoPlaylistCreate: VideoPlaylistCreate = { |
197 | displayName, | 197 | displayName, |
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element.model.ts b/client/src/app/shared/shared-video-playlist/video-playlist-element.model.ts index f25f10ede..b661378bd 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element.model.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element.model.ts | |||
@@ -11,7 +11,7 @@ export class VideoPlaylistElement implements ServerVideoPlaylistElement { | |||
11 | 11 | ||
12 | video?: Video | 12 | video?: Video |
13 | 13 | ||
14 | constructor (hash: ServerVideoPlaylistElement, translations: {}) { | 14 | constructor (hash: ServerVideoPlaylistElement, translations: { [ id: string ]: string } = {}) { |
15 | this.id = hash.id | 15 | this.id = hash.id |
16 | this.position = hash.position | 16 | this.position = hash.position |
17 | this.startTimestamp = hash.startTimestamp | 17 | this.startTimestamp = hash.startTimestamp |
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.model.ts b/client/src/app/shared/shared-video-playlist/video-playlist.model.ts index fcc2ce705..6b38d9ca3 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist.model.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist.model.ts | |||
@@ -48,7 +48,7 @@ export class VideoPlaylist implements ServerVideoPlaylist { | |||
48 | return buildPlaylistWatchPath({ shortUUID: playlist.shortUUID || playlist.uuid }) | 48 | return buildPlaylistWatchPath({ shortUUID: playlist.shortUUID || playlist.uuid }) |
49 | } | 49 | } |
50 | 50 | ||
51 | constructor (hash: ServerVideoPlaylist, translations: {}) { | 51 | constructor (hash: ServerVideoPlaylist, translations: { [ id: string ]: string }) { |
52 | const absoluteAPIUrl = getAbsoluteAPIUrl() | 52 | const absoluteAPIUrl = getAbsoluteAPIUrl() |
53 | 53 | ||
54 | this.id = hash.id | 54 | this.id = hash.id |
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts index a3f1393ff..0a01af593 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts | |||
@@ -279,18 +279,18 @@ export class VideoPlaylistService { | |||
279 | } | 279 | } |
280 | 280 | ||
281 | listenToVideoPlaylistChange (videoId: number) { | 281 | listenToVideoPlaylistChange (videoId: number) { |
282 | if (this.videoExistsObservableCache[ videoId ]) { | 282 | if (this.videoExistsObservableCache[videoId]) { |
283 | return this.videoExistsObservableCache[ videoId ] | 283 | return this.videoExistsObservableCache[videoId] |
284 | } | 284 | } |
285 | 285 | ||
286 | const obs = this.videoExistsInPlaylistObservable | 286 | const obs = this.videoExistsInPlaylistObservable |
287 | .pipe( | 287 | .pipe( |
288 | map(existsResult => existsResult[ videoId ]), | 288 | map(existsResult => existsResult[videoId]), |
289 | filter(r => !!r), | 289 | filter(r => !!r), |
290 | tap(result => this.videoExistsCache[ videoId ] = result) | 290 | tap(result => this.videoExistsCache[videoId] = result) |
291 | ) | 291 | ) |
292 | 292 | ||
293 | this.videoExistsObservableCache[ videoId ] = obs | 293 | this.videoExistsObservableCache[videoId] = obs |
294 | return obs | 294 | return obs |
295 | } | 295 | } |
296 | 296 | ||