- this.videoService.reportVideo(this.video.id, reason)
- .subscribe(
- // TODO: move alert to beautiful notifications
- ok => {
- alert('Video reported.');
- this.hide();
- },
+ this.videoAbuseService.reportVideo(this.video.id, reason)
+ .subscribe(
+ () => {
+ this.notificationsService.success('Success', 'Video reported.');
+ this.hide();
+ },