comments: VideoComment[] = []
highlightedThread: VideoComment
+
sort = '-createdAt'
+
componentPagination: ComponentPagination = {
currentPage: 1,
itemsPerPage: 10,
totalItems: null
}
+ totalNotDeletedComments: number
+
inReplyToCommentId: number
commentReplyRedraftValue: string
commentThreadRedraftValue: string
+
threadComments: { [ id: number ]: VideoCommentThreadTree } = {}
threadLoading: { [ id: number ]: boolean } = {}
res => {
this.comments = this.comments.concat(res.data)
this.componentPagination.totalItems = res.total
+ this.totalNotDeletedComments = res.totalNotDeletedComments
this.onDataSubject.next(res.data)
this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination })
this.inReplyToCommentId = undefined
this.componentPagination.currentPage = 1
this.componentPagination.totalItems = null
+ this.totalNotDeletedComments = null
this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid)
this.loadMoreThreads()