diff options
Diffstat (limited to 'client/src/app/shared/video/video-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/video/video-miniature.component.ts | 6 |
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 @@ | |||
1 | import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core' | 1 | import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output, ViewChild } from '@angular/core' |
2 | import { User } from '../users' | 2 | import { User } from '../users' |
3 | import { Video } from './video.model' | 3 | import { Video } from './video.model' |
4 | import { ServerService } from '@app/core' | 4 | import { ServerService } from '@app/core' |
@@ -6,6 +6,7 @@ import { ServerConfig, VideoPrivacy, VideoState } from '../../../../../shared' | |||
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | 6 | import { I18n } from '@ngx-translate/i18n-polyfill' |
7 | import { VideoActionsDisplayType } from '@app/shared/video/video-actions-dropdown.component' | 7 | import { VideoActionsDisplayType } from '@app/shared/video/video-actions-dropdown.component' |
8 | import { ScreenService } from '@app/shared/misc/screen.service' | 8 | import { ScreenService } from '@app/shared/misc/screen.service' |
9 | import { VideoThumbnailComponent } from './video-thumbnail.component' | ||
9 | 10 | ||
10 | export type OwnerDisplayType = 'account' | 'videoChannel' | 'auto' | 11 | export type OwnerDisplayType = 'account' | 'videoChannel' | 'auto' |
11 | export type MiniatureDisplayOptions = { | 12 | export 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 () { |