From 5769e1db8d3d5a1e3baa8dff23090cfe93d48a50 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Jan 2017 16:54:44 +0100 Subject: Client: better confirm box for a beautiful world --- .../src/app/videos/video-watch/video-report.component.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client/src/app/videos/video-watch') diff --git a/client/src/app/videos/video-watch/video-report.component.ts b/client/src/app/videos/video-watch/video-report.component.ts index 19a7af148..7906fdb5c 100644 --- a/client/src/app/videos/video-watch/video-report.component.ts +++ b/client/src/app/videos/video-watch/video-report.component.ts @@ -57,13 +57,13 @@ export class VideoReportComponent extends FormReactive implements OnInit { 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) + ); } } -- cgit v1.2.3