]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/video-list/video-miniature.component.ts
Change video spinner
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-list / video-miniature.component.ts
CommitLineData
db7af09b 1import { Component, Input } from '@angular/core'
501bc6c2 2
db7af09b 3import { SortField, Video } from '../shared'
df98563e 4import { User } from '../../shared'
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() currentSort: SortField
13 @Input() user: User
14 @Input() video: Video
501bc6c2 15
df98563e
C
16 isVideoNSFWForThisUser () {
17 return this.video.isVideoNSFWForUser(this.user)
92fb909c 18 }
501bc6c2 19}