- @Output() removed = new EventEmitter<any>();
-
- @Input() currentSort: SortField;
- @Input() user: User;
- @Input() video: Video;
-
- hovering = false;
-
- constructor(private videoService: VideoService) {}
-
- displayRemoveIcon() {
- return this.hovering && this.video.isRemovableBy(this.user);
- }
-
- onBlur() {
- this.hovering = false;
- }
+ @Input() currentSort: SortField
+ @Input() user: User
+ @Input() video: Video
+
+ constructor (
+ private notificationsService: NotificationsService,
+ private confirmService: ConfirmService,
+ private configService: ConfigService,
+ private videoService: VideoService
+ ) {}
+
+ getVideoName () {
+ if (this.isVideoNSFWForThisUser()) {
+ return 'NSFW'
+ }