@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
})
}
- if (this.prependModerationActions.length === 0) {
- this.prependModerationActions = undefined
+ if (this.prependModerationActions.length !== 0) {
+ this.prependModerationActions.unshift({
+ label: $localize`Actions on comment`,
+ isHeader: true
+ })
}
}