]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.ts
Hide big play button on autoplay
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.ts
CommitLineData
db7af09b 1import { Component, Input } from '@angular/core'
b1fa3eba
C
2import { User } from '../users'
3import { Video } from './video.model'
501bc6c2
C
4
5@Component({
6 selector: 'my-video-miniature',
ec8d8440
C
7 styleUrls: [ './video-miniature.component.scss' ],
8 templateUrl: './video-miniature.component.html'
501bc6c2 9})
501bc6c2 10export class VideoMiniatureComponent {
df98563e
C
11 @Input() user: User
12 @Input() video: Video
501bc6c2 13
df98563e
C
14 isVideoNSFWForThisUser () {
15 return this.video.isVideoNSFWForUser(this.user)
92fb909c 16 }
501bc6c2 17}