diff options
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r-- | client/src/app/videos/video-list/video-miniature.component.ts | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts index 1cfeacf36..8d8b817ee 100644 --- a/client/src/app/videos/video-list/video-miniature.component.ts +++ b/client/src/app/videos/video-list/video-miniature.component.ts | |||
@@ -1,9 +1,6 @@ | |||
1 | import { Component, Input, Output, EventEmitter } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | 2 | ||
3 | import { NotificationsService } from 'angular2-notifications' | 3 | import { SortField, Video } from '../shared' |
4 | |||
5 | import { ConfirmService, ConfigService } from '../../core' | ||
6 | import { SortField, Video, VideoService } from '../shared' | ||
7 | import { User } from '../../shared' | 4 | import { User } from '../../shared' |
8 | 5 | ||
9 | @Component({ | 6 | @Component({ |
@@ -11,19 +8,11 @@ import { User } from '../../shared' | |||
11 | styleUrls: [ './video-miniature.component.scss' ], | 8 | styleUrls: [ './video-miniature.component.scss' ], |
12 | templateUrl: './video-miniature.component.html' | 9 | templateUrl: './video-miniature.component.html' |
13 | }) | 10 | }) |
14 | |||
15 | export class VideoMiniatureComponent { | 11 | export class VideoMiniatureComponent { |
16 | @Input() currentSort: SortField | 12 | @Input() currentSort: SortField |
17 | @Input() user: User | 13 | @Input() user: User |
18 | @Input() video: Video | 14 | @Input() video: Video |
19 | 15 | ||
20 | constructor ( | ||
21 | private notificationsService: NotificationsService, | ||
22 | private confirmService: ConfirmService, | ||
23 | private configService: ConfigService, | ||
24 | private videoService: VideoService | ||
25 | ) {} | ||
26 | |||
27 | getVideoName () { | 16 | getVideoName () { |
28 | if (this.isVideoNSFWForThisUser()) { | 17 | if (this.isVideoNSFWForThisUser()) { |
29 | return 'NSFW' | 18 | return 'NSFW' |