diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/modal/video-share.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-share.component.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index 3550556a0..b42b775c1 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' |
2 | import { VideoDetails } from '../../../shared/video/video-details.model' | ||
3 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' | 2 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' |
4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
5 | import { VideoCaption } from '@shared/models' | 4 | import { VideoCaption } from '@shared/models' |
6 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | 5 | import { VideoDetails } from '@app/shared/shared-main' |
6 | import { VideoPlaylist } from '@app/shared/shared-video-playlist' | ||
7 | 7 | ||
8 | type Customizations = { | 8 | type Customizations = { |
9 | startAtCheckbox: boolean | 9 | startAtCheckbox: boolean |
@@ -40,13 +40,9 @@ export class VideoShareComponent { | |||
40 | isAdvancedCustomizationCollapsed = true | 40 | isAdvancedCustomizationCollapsed = true |
41 | includeVideoInPlaylist = false | 41 | includeVideoInPlaylist = false |
42 | 42 | ||
43 | private currentVideoTimestamp: number | ||
44 | |||
45 | constructor (private modalService: NgbModal) { } | 43 | constructor (private modalService: NgbModal) { } |
46 | 44 | ||
47 | show (currentVideoTimestamp?: number) { | 45 | show (currentVideoTimestamp?: number) { |
48 | this.currentVideoTimestamp = currentVideoTimestamp | ||
49 | |||
50 | let subtitle: string | 46 | let subtitle: string |
51 | if (this.videoCaptions.length !== 0) { | 47 | if (this.videoCaptions.length !== 0) { |
52 | subtitle = this.videoCaptions[0].language.id | 48 | subtitle = this.videoCaptions[0].language.id |