diff options
Diffstat (limited to 'client/src/app/shared/video/video-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/video/video-miniature.component.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.ts b/client/src/app/shared/video/video-miniature.component.ts new file mode 100644 index 000000000..4d79a74bb --- /dev/null +++ b/client/src/app/shared/video/video-miniature.component.ts | |||
@@ -0,0 +1,17 @@ | |||
1 | import { Component, Input } from '@angular/core' | ||
2 | import { User } from '../users' | ||
3 | import { Video } from './video.model' | ||
4 | |||
5 | @Component({ | ||
6 | selector: 'my-video-miniature', | ||
7 | styleUrls: [ './video-miniature.component.scss' ], | ||
8 | templateUrl: './video-miniature.component.html' | ||
9 | }) | ||
10 | export class VideoMiniatureComponent { | ||
11 | @Input() user: User | ||
12 | @Input() video: Video | ||
13 | |||
14 | isVideoNSFWForThisUser () { | ||
15 | return this.video.isVideoNSFWForUser(this.user) | ||
16 | } | ||
17 | } | ||