- displayRemoveIcon() {
- return this.hovering && this.video.isRemovableBy(this.user);
- }
-
- getVideoName() {
- if (this.isVideoNSFWForThisUser())
- return 'NSFW';
-
- return this.video.name;
- }
-
- onBlur() {
- this.hovering = false;
- }
-
- onHover() {
- this.hovering = true;
- }
-
- removeVideo(id: string) {
- this.confirmService.confirm('Do you really want to delete this video?', 'Delete').subscribe(
- res => {
- if (res === false) return;
-
- this.videoService.removeVideo(id).subscribe(
- status => this.removed.emit(true),