]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
video-watch.video-threads.loaded after DOM loading
authorChocobozzz <me@florianbigard.com>
Fri, 22 Jul 2022 13:31:37 +0000 (15:31 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 22 Jul 2022 13:31:37 +0000 (15:31 +0200)
client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts

index 8e556c58f6ef3bb88a4b9fabec4df99d00d1a4f4..1652fd3c4c0a8f78e34c247776030e1e564852cd 100644 (file)
@@ -130,7 +130,8 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
         this.totalNotDeletedComments = res.totalNotDeletedComments
 
         this.onDataSubject.next(res.data)
-        this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination })
+
+        setTimeout(() => this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination }))
       },
 
       error: err => this.notifier.error(err.message)