]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/video-watch/video-report.component.ts
Add like/dislike system for videos
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-watch / video-report.component.ts
index 19a7af1482c3c3ff9f429450004c36c13bf7b756..c4cf936ce93473371c6a79f8cf43d18d24e37430 100644 (file)
@@ -54,16 +54,16 @@ export class VideoReportComponent extends FormReactive implements OnInit {
   }
 
   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)
+                           );
   }
 }