diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts index b1f446475..2ee5f5ef1 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | |||
@@ -9,6 +9,7 @@ import { User } from '../../../shared/users' | |||
9 | import { Video } from '../../../shared/video/video.model' | 9 | import { Video } from '../../../shared/video/video.model' |
10 | import { VideoComment } from './video-comment.model' | 10 | import { VideoComment } from './video-comment.model' |
11 | import { VideoCommentService } from './video-comment.service' | 11 | import { VideoCommentService } from './video-comment.service' |
12 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
12 | 13 | ||
13 | @Component({ | 14 | @Component({ |
14 | selector: 'my-video-comment-add', | 15 | selector: 'my-video-comment-add', |
@@ -37,7 +38,8 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
37 | constructor ( | 38 | constructor ( |
38 | private formBuilder: FormBuilder, | 39 | private formBuilder: FormBuilder, |
39 | private notificationsService: NotificationsService, | 40 | private notificationsService: NotificationsService, |
40 | private videoCommentService: VideoCommentService | 41 | private videoCommentService: VideoCommentService, |
42 | private i18n: I18n | ||
41 | ) { | 43 | ) { |
42 | super() | 44 | super() |
43 | } | 45 | } |
@@ -92,7 +94,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
92 | this.form.reset() | 94 | this.form.reset() |
93 | }, | 95 | }, |
94 | 96 | ||
95 | err => this.notificationsService.error('Error', err.text) | 97 | err => this.notificationsService.error(this.i18n('Error'), err.text) |
96 | ) | 98 | ) |
97 | } | 99 | } |
98 | 100 | ||