diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comment.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment.component.ts | 4 |
1 files changed, 1 insertions, 3 deletions
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' | |||
5 | import { Account, Actor, DropdownAction, Video } from '@app/shared/shared-main' | 5 | import { Account, Actor, DropdownAction, Video } from '@app/shared/shared-main' |
6 | import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component' | 6 | import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component' |
7 | import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment' | 7 | import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { User, UserRight } from '@shared/models' | 8 | import { User, UserRight } from '@shared/models' |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -39,7 +38,6 @@ export class VideoCommentComponent implements OnInit, OnChanges { | |||
39 | commentUser: User | 38 | commentUser: User |
40 | 39 | ||
41 | constructor ( | 40 | constructor ( |
42 | private i18n: I18n, | ||
43 | private markdownService: MarkdownService, | 41 | private markdownService: MarkdownService, |
44 | private authService: AuthService, | 42 | private authService: AuthService, |
45 | private userService: UserService, | 43 | private userService: UserService, |
@@ -138,7 +136,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { | |||
138 | if (this.isUserLoggedIn() && this.comment.isDeleted === false && this.authService.getUser().account.id !== this.comment.account.id) { | 136 | if (this.isUserLoggedIn() && this.comment.isDeleted === false && this.authService.getUser().account.id !== this.comment.account.id) { |
139 | this.prependModerationActions = [ | 137 | this.prependModerationActions = [ |
140 | { | 138 | { |
141 | label: this.i18n('Report comment'), | 139 | label: $localize`Report comment`, |
142 | handler: () => this.showReportModal() | 140 | handler: () => this.showReportModal() |
143 | } | 141 | } |
144 | ] | 142 | ] |