diff options
author | Aman Sharma <amsharma44@users.noreply.github.com> | 2020-08-10 12:02:10 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 08:32:10 +0200 |
commit | 203d594f2d20c6a573e80f7044cce4bce5dd72a9 (patch) | |
tree | bb8651e326ee85600555383329e3ae85858c00f4 /client/src/app/+videos/+video-watch/modal/video-support.component.ts | |
parent | 17384fd85636b9fe672ecb520ba6f2266483d4b1 (diff) | |
download | PeerTube-203d594f2d20c6a573e80f7044cce4bce5dd72a9.tar.gz PeerTube-203d594f2d20c6a573e80f7044cce4bce5dd72a9.tar.zst PeerTube-203d594f2d20c6a573e80f7044cce4bce5dd72a9.zip |
Resume video playback on close of support modal (#3052)
* Resume video playback on close of support modal #2995
* Fix lint issues
Diffstat (limited to 'client/src/app/+videos/+video-watch/modal/video-support.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/modal/video-support.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/modal/video-support.component.ts b/client/src/app/+videos/+video-watch/modal/video-support.component.ts index 48d5f2948..bd5290a72 100644 --- a/client/src/app/+videos/+video-watch/modal/video-support.component.ts +++ b/client/src/app/+videos/+video-watch/modal/video-support.component.ts | |||
@@ -21,9 +21,11 @@ export class VideoSupportComponent { | |||
21 | ) { } | 21 | ) { } |
22 | 22 | ||
23 | show () { | 23 | show () { |
24 | this.modalService.open(this.modal, { centered: true }) | 24 | const modalRef = this.modalService.open(this.modal, { centered: true }) |
25 | 25 | ||
26 | this.markdownService.enhancedMarkdownToHTML(this.video.support) | 26 | this.markdownService.enhancedMarkdownToHTML(this.video.support) |
27 | .then(r => this.videoHTMLSupport = r) | 27 | .then(r => this.videoHTMLSupport = r) |
28 | |||
29 | return modalRef | ||
28 | } | 30 | } |
29 | } | 31 | } |