]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts
Increase global font size
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / shared / comment / video-comment.component.ts
index 0e1c4c2070077fe3c747f79df363297f4c604e8f..cabea7551da6246a0fe83ceb624e20555c598a8f 100644 (file)
@@ -10,7 +10,7 @@ import { User, UserRight } from '@shared/models'
 @Component({
   selector: 'my-video-comment',
   templateUrl: './video-comment.component.html',
-  styleUrls: ['./video-comment.component.scss']
+  styleUrls: [ './video-comment.component.scss' ]
 })
 export class VideoCommentComponent implements OnInit, OnChanges {
   @ViewChild('commentReportModal') commentReportModal: CommentReportComponent
@@ -149,11 +149,11 @@ export class VideoCommentComponent implements OnInit, OnChanges {
     const user = this.authService.getUser()
     if (user.hasRight(UserRight.MANAGE_USERS)) {
       this.userService.getUserWithCache(account.userId)
-          .subscribe(
-            user => this.commentUser = user,
+          .subscribe({
+            next: user => this.commentUser = user,
 
-            err => this.notifier.error(err.message)
-          )
+            error: err => this.notifier.error(err.message)
+          })
     }
   }
 
@@ -197,8 +197,11 @@ export class VideoCommentComponent implements OnInit, OnChanges {
       })
     }
 
-    if (this.prependModerationActions.length === 0) {
-      this.prependModerationActions = undefined
+    if (this.prependModerationActions.length !== 0) {
+      this.prependModerationActions.unshift({
+        label: $localize`Actions on comment`,
+        isHeader: true
+      })
     }
   }