]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input } from '@angular/core' | |
2 | ||
3 | import { SortField, Video } from '../../shared' | |
4 | import { User } from '../../../shared' | |
5 | ||
6 | @Component({ | |
7 | selector: 'my-video-miniature', | |
8 | styleUrls: [ './video-miniature.component.scss' ], | |
9 | templateUrl: './video-miniature.component.html' | |
10 | }) | |
11 | export class VideoMiniatureComponent { | |
12 | @Input() currentSort: SortField | |
13 | @Input() user: User | |
14 | @Input() video: Video | |
15 | ||
16 | isVideoNSFWForThisUser () { | |
17 | return this.video.isVideoNSFWForUser(this.user) | |
18 | } | |
19 | } |