+ const obs = this.hooks.wrapObsFun(
+ this.videoCommentService.getVideoCommentThreads.bind(this.videoCommentService),
+ params,
+ 'video-watch',
+ 'filter:api.video-watch.video-threads.list.params',
+ 'filter:api.video-watch.video-threads.list.result'
+ )
+
+ obs.subscribe(
+ res => {
+ this.comments = this.comments.concat(res.data)
+ this.componentPagination.totalItems = res.total
+
+ this.onDataSubject.next(res.data)
+ },
+
+ err => this.notifier.error(err.message)
+ )