diff options
Diffstat (limited to 'client/src/app/videos/video-list/shared/video-miniature.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/shared/video-miniature.component.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client/src/app/videos/video-list/shared/video-miniature.component.ts b/client/src/app/videos/video-list/shared/video-miniature.component.ts new file mode 100644 index 000000000..e5a87907b --- /dev/null +++ b/client/src/app/videos/video-list/shared/video-miniature.component.ts | |||
@@ -0,0 +1,19 @@ | |||
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 | } | ||