From a2c3564a31268e4e60f05952aa3731e114ac1e30 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Oct 2021 10:19:42 +0200 Subject: Improve moderation dropdown UX --- .../+videos/+video-watch/shared/comment/video-comment.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src/app/+videos') diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts index 5bbcffe82..cabea7551 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts @@ -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 + }) } } -- cgit v1.2.3