X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment.component.ts;h=a84e91fd323171a4286d7e5ad76533a51de32400;hb=66357162f8e1227495f09bd4f68446aad7071c6d;hp=36ec6e9f9d63521a26271b66b520278d97ce04d0;hpb=8c360747995e17eb5520e22fc3d7bd4c3d26eeee;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts index 36ec6e9f9..a84e91fd3 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts @@ -5,7 +5,6 @@ import { AuthService } from '@app/core/auth' 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({ @@ -39,7 +38,6 @@ export class VideoCommentComponent implements OnInit, OnChanges { commentUser: User constructor ( - private i18n: I18n, private markdownService: MarkdownService, private authService: AuthService, private userService: UserService, @@ -138,7 +136,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { 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() } ]