]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts
Rename jobs list command
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-abuse-list / moderation-comment-modal.component.ts
index 876aeea8a7eecb75471d97e4946733ef53aaa6ba..ccb0c5262ac111ecb0f4713f13b4a3756cf78ff1 100644 (file)
@@ -50,19 +50,19 @@ export class ModerationCommentModalComponent extends FormReactive implements OnI
   }
 
   async banUser () {
-    const moderationComment: string = this.form.value[ 'moderationComment' ]
+    const moderationComment: string = this.form.value['moderationComment']
 
     this.abuseService.updateAbuse(this.abuseToComment, { moderationComment })
-        .subscribe(
-          () => {
+        .subscribe({
+          next: () => {
             this.notifier.success($localize`Comment updated.`)
 
             this.commentUpdated.emit(moderationComment)
             this.hide()
           },
 
-          err => this.notifier.error(err.message)
-        )
+          error: err => this.notifier.error(err.message)
+        })
   }
 
 }