diff options
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.ts | 1 | ||||
-rw-r--r-- | shared/models/plugins/client-hook.model.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.ts index a87bc16d7..910a1761c 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts | |||
@@ -130,6 +130,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
130 | this.componentPagination.totalItems = res.total | 130 | this.componentPagination.totalItems = res.total |
131 | 131 | ||
132 | this.onDataSubject.next(res.data) | 132 | this.onDataSubject.next(res.data) |
133 | this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination }) | ||
133 | }, | 134 | }, |
134 | 135 | ||
135 | err => this.notifier.error(err.message) | 136 | err => this.notifier.error(err.message) |
diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts index ecbe8bd3c..fc36e5771 100644 --- a/shared/models/plugins/client-hook.model.ts +++ b/shared/models/plugins/client-hook.model.ts | |||
@@ -65,6 +65,8 @@ export const clientActionHookObject = { | |||
65 | 'action:video-watch.video.loaded': true, | 65 | 'action:video-watch.video.loaded': true, |
66 | // Fired when the player finished loading | 66 | // Fired when the player finished loading |
67 | 'action:video-watch.player.loaded': true, | 67 | 'action:video-watch.player.loaded': true, |
68 | // Fired when the video watch page comments(threads) are loaded and load more comments on scroll | ||
69 | 'action:video-watch.video-threads.loaded': true, | ||
68 | 70 | ||
69 | // Fired when the search page is being initialized | 71 | // Fired when the search page is being initialized |
70 | 'action:search.init': true, | 72 | 'action:search.init': true, |