import { Account, Actor, DropdownAction, Video } from '@app/shared/shared-main'
import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component'
import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment'
-import { I18n } from '@ngx-translate/i18n-polyfill'
import { User, UserRight } from '@shared/models'
@Component({
commentUser: User
constructor (
- private i18n: I18n,
private markdownService: MarkdownService,
private authService: AuthService,
private userService: UserService,
if (this.isUserLoggedIn() && this.comment.isDeleted === false && this.authService.getUser().account.id !== this.comment.account.id) {
this.prependModerationActions = [
{
- label: this.i18n('Report comment'),
+ label: $localize`Report comment`,
handler: () => this.showReportModal()
}
]