inputFilters: AdvancedInputFilter[] = [
{
- queryParams: { search: 'local:true' },
- label: $localize`Local comments`
- },
- {
- queryParams: { search: 'local:false' },
- label: $localize`Remote comments`
+ title: $localize`Advanced filters`,
+ children: [
+ {
+ value: 'local:true',
+ label: $localize`Local comments`
+ },
+ {
+ value: 'local:false',
+ label: $localize`Remote comments`
+ }
+ ]
}
]
})
}
- private async removeComments (comments: VideoCommentAdmin[]) {
+ private removeComments (comments: VideoCommentAdmin[]) {
const commentArgs = comments.map(c => ({ videoId: c.video.id, commentId: c.id }))
this.videoCommentService.deleteVideoComments(commentArgs)