]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/modal/video-support.component.ts
Resume video playback on close of support modal (#3052)
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / modal / video-support.component.ts
index 48d5f2948640d6a670494697f5a95c9fa810d4dc..bd5290a721666ce36275ab26f1df3eec23661c34 100644 (file)
@@ -21,9 +21,11 @@ export class VideoSupportComponent {
   ) { }
 
   show () {
-    this.modalService.open(this.modal, { centered: true })
+    const modalRef = this.modalService.open(this.modal, { centered: true })
 
     this.markdownService.enhancedMarkdownToHTML(this.video.support)
       .then(r => this.videoHTMLSupport = r)
+
+    return modalRef
   }
 }