]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.ts
Translate subtitle langs in player
[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'
0883b324 4import { ServerService } from '@app/core'
501bc6c2
C
5
6@Component({
7 selector: 'my-video-miniature',
ec8d8440
C
8 styleUrls: [ './video-miniature.component.scss' ],
9 templateUrl: './video-miniature.component.html'
501bc6c2 10})
501bc6c2 11export class VideoMiniatureComponent {
df98563e
C
12 @Input() user: User
13 @Input() video: Video
501bc6c2 14
0883b324
C
15 constructor (private serverService: ServerService) { }
16
17 isVideoBlur () {
18 return this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig())
92fb909c 19 }
501bc6c2 20}