diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index 0909b13f5..d838ebe79 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -204,7 +204,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
204 | } | 204 | } |
205 | 205 | ||
206 | showShareModal () { | 206 | showShareModal () { |
207 | this.videoShareModal.show() | 207 | const currentTime = this.player ? this.player.currentTime() : undefined |
208 | |||
209 | this.videoShareModal.show(currentTime) | ||
208 | } | 210 | } |
209 | 211 | ||
210 | showDownloadModal (event: Event) { | 212 | showDownloadModal (event: Event) { |
@@ -258,12 +260,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
258 | return this.video.isUnblacklistableBy(this.user) | 260 | return this.video.isUnblacklistableBy(this.user) |
259 | } | 261 | } |
260 | 262 | ||
261 | getVideoPoster () { | ||
262 | if (!this.video) return '' | ||
263 | |||
264 | return this.video.previewUrl | ||
265 | } | ||
266 | |||
267 | getVideoTags () { | 263 | getVideoTags () { |
268 | if (!this.video || Array.isArray(this.video.tags) === false) return [] | 264 | if (!this.video || Array.isArray(this.video.tags) === false) return [] |
269 | 265 | ||