]>
Commit | Line | Data |
---|---|---|
db7af09b | 1 | import { Component, Input } from '@angular/core' |
b1fa3eba C |
2 | import { User } from '../users' |
3 | import { 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 | 10 | export 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 | } |