X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-watch%2Fshared%2Fcomment%2Fvideo-comment.component.ts;h=cabea7551da6246a0fe83ceb624e20555c598a8f;hb=5b0ec7cddb1ae6dbd2057f067382866f846b882c;hp=f858f4750756b36a8a98b5b93dc0f50ee157fb60;hpb=1378c0d343028f3d40d7d795422684ab9e6a1599;p=github%2FChocobozzz%2FPeerTube.git 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 f858f4750..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 @@ -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 @@ -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 + }) } }