From d65cd16551449216f23d68a6238f7739bab34644 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Jul 2022 15:31:37 +0200 Subject: video-watch.video-threads.loaded after DOM loading --- .../+videos/+video-watch/shared/comment/video-comments.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/+videos') diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts index 8e556c58f..1652fd3c4 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts @@ -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) -- cgit v1.2.3