import { VideoPlaylistService } from '../shared-video-playlist'
import { VideoActionsDisplayType } from './video-actions-dropdown.component'
-export type OwnerDisplayType = 'account' | 'videoChannel'
export type MiniatureDisplayOptions = {
date?: boolean
views?: boolean
state: false,
blacklistInfo: false
}
- @Input() displayAsRow = false
@Input() displayVideoActions = true
- @Input() fitWidth = false
+
+ @Input() displayAsRow = false
@Input() videoLinkType: VideoLinkType = 'internal'
getAvatarUrl () {
if (this.displayOwnerAccount()) {
- return this.video.accountAvatarUrl
+ return this.video.account.avatar?.url
}
return this.video.videoChannelAvatarUrl
return this.displayVideoActions && this.isUserLoggedIn() && this.inWatchLaterPlaylist !== undefined
}
+ getClasses () {
+ return {
+ 'display-as-row': this.displayAsRow
+ }
+ }
+
private setUpBy () {
const accountName = this.video.account.name