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 ba59e0a1d..f2bb5c464 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 | |||
@@ -96,6 +96,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
96 | res => { | 96 | res => { |
97 | this.threadComments[commentId] = res | 97 | this.threadComments[commentId] = res |
98 | this.threadLoading[commentId] = false | 98 | this.threadLoading[commentId] = false |
99 | this.hooks.runAction('action:video-watch.video-thread-replies.loaded', 'video-watch', { data: res }) | ||
99 | 100 | ||
100 | if (highlightThread) { | 101 | if (highlightThread) { |
101 | this.highlightedThread = new VideoComment(res.comment) | 102 | this.highlightedThread = new VideoComment(res.comment) |
diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts index fc36e5771..62f6070d7 100644 --- a/shared/models/plugins/client-hook.model.ts +++ b/shared/models/plugins/client-hook.model.ts | |||
@@ -67,6 +67,8 @@ export const clientActionHookObject = { | |||
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 | 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, | 69 | 'action:video-watch.video-threads.loaded': true, |
70 | // Fired when a user click on 'View x replies' and they're loaded | ||
71 | 'action:video-watch.video-thread-replies.loaded': true, | ||
70 | 72 | ||
71 | // Fired when the search page is being initialized | 73 | // Fired when the search page is being initialized |
72 | 'action:search.init': true, | 74 | 'action:search.init': true, |