}
report() {
- const reason = this.form.value['reason']
+ const reason = this.form.value['reason'];
this.videoAbuseService.reportVideo(this.video.id, reason)
- .subscribe(
- () => {
- this.notificationsService.success('Success', 'Video reported.');
- this.hide();
- },
+ .subscribe(
+ () => {
+ this.notificationsService.success('Success', 'Video reported.');
+ this.hide();
+ },
- err => this.notificationsService.error('Error', err.text);
- )
+ err => this.notificationsService.error('Error', err.text)
+ );
}
}