videoPages: Video[][] = []
ownerDisplayType: OwnerDisplayType = 'account'
firstLoadedPage: number
+ displayModerationBlock = false
protected baseVideoWidth = 215
protected baseVideoHeight = 205
pageByVideoId (index: number, page: Video[]) {
// Video are unique in all pages
- return page[0].id
+ return page.length !== 0 ? page[0].id : 0
}
videoById (index: number, video: Video) {
)
}
+ toggleModerationDisplay () {
+ throw new Error('toggleModerationDisplay is not implemented')
+ }
+
protected hasMoreVideos () {
// No results
if (this.pagination.totalItems === 0) return false