]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts
Improve moderation dropdown UX
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / shared / comment / video-comment.component.ts
index 5bbcffe8293483a0dc9a7e3cabc53ae269a47d73..cabea7551da6246a0fe83ceb624e20555c598a8f 100644 (file)
@@ -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
+      })
     }
   }