Add action hook, comments loaded (#2539)
* Adding action hook for video watch comments loaded * Adding requested changes for PR #2539
This commit is contained in:
parent
52e3beb90d
commit
0840ca76a2
2 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
this.componentPagination.totalItems = res.total
|
this.componentPagination.totalItems = res.total
|
||||||
|
|
||||||
this.onDataSubject.next(res.data)
|
this.onDataSubject.next(res.data)
|
||||||
|
this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination })
|
||||||
},
|
},
|
||||||
|
|
||||||
err => this.notifier.error(err.message)
|
err => this.notifier.error(err.message)
|
||||||
|
|
|
@ -65,6 +65,8 @@ export const clientActionHookObject = {
|
||||||
'action:video-watch.video.loaded': true,
|
'action:video-watch.video.loaded': true,
|
||||||
// Fired when the player finished loading
|
// Fired when the player finished loading
|
||||||
'action:video-watch.player.loaded': true,
|
'action:video-watch.player.loaded': true,
|
||||||
|
// Fired when the video watch page comments(threads) are loaded and load more comments on scroll
|
||||||
|
'action:video-watch.video-threads.loaded': true,
|
||||||
|
|
||||||
// Fired when the search page is being initialized
|
// Fired when the search page is being initialized
|
||||||
'action:search.init': true,
|
'action:search.init': true,
|
||||||
|
|
Loading…
Reference in a new issue