aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-miniature.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/video/video-miniature.component.ts')
-rw-r--r--client/src/app/shared/video/video-miniature.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.ts b/client/src/app/shared/video/video-miniature.component.ts
index 9fffc7ddb..ba65d33b6 100644
--- a/client/src/app/shared/video/video-miniature.component.ts
+++ b/client/src/app/shared/video/video-miniature.component.ts
@@ -1,4 +1,4 @@
1import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core' 1import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output, ViewChild } from '@angular/core'
2import { User } from '../users' 2import { User } from '../users'
3import { Video } from './video.model' 3import { Video } from './video.model'
4import { ServerService } from '@app/core' 4import { ServerService } from '@app/core'
@@ -6,6 +6,7 @@ import { ServerConfig, VideoPrivacy, VideoState } from '../../../../../shared'
6import { I18n } from '@ngx-translate/i18n-polyfill' 6import { I18n } from '@ngx-translate/i18n-polyfill'
7import { VideoActionsDisplayType } from '@app/shared/video/video-actions-dropdown.component' 7import { VideoActionsDisplayType } from '@app/shared/video/video-actions-dropdown.component'
8import { ScreenService } from '@app/shared/misc/screen.service' 8import { ScreenService } from '@app/shared/misc/screen.service'
9import { VideoThumbnailComponent } from './video-thumbnail.component'
9 10
10export type OwnerDisplayType = 'account' | 'videoChannel' | 'auto' 11export type OwnerDisplayType = 'account' | 'videoChannel' | 'auto'
11export type MiniatureDisplayOptions = { 12export type MiniatureDisplayOptions = {
@@ -46,6 +47,8 @@ export class VideoMiniatureComponent implements OnInit {
46 @Output() videoUnblacklisted = new EventEmitter() 47 @Output() videoUnblacklisted = new EventEmitter()
47 @Output() videoRemoved = new EventEmitter() 48 @Output() videoRemoved = new EventEmitter()
48 49
50 @ViewChild('thumbnail', { static: true }) thumbnail: VideoThumbnailComponent
51
49 videoActionsDisplayOptions: VideoActionsDisplayType = { 52 videoActionsDisplayOptions: VideoActionsDisplayType = {
50 playlist: true, 53 playlist: true,
51 download: false, 54 download: false,
@@ -128,6 +131,7 @@ export class VideoMiniatureComponent implements OnInit {
128 131
129 loadActions () { 132 loadActions () {
130 if (this.displayVideoActions) this.showActions = true 133 if (this.displayVideoActions) this.showActions = true
134 this.thumbnail.load()
131 } 135 }
132 136
133 onVideoBlacklisted () { 137 onVideoBlacklisted () {