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, 2 insertions, 4 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 fd85c28f2..ac1d02d94 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 | |||
@@ -8,7 +8,6 @@ import { User } from '../../../shared/users' | |||
8 | import { Video } from '../../../shared/video/video.model' | 8 | import { Video } from '../../../shared/video/video.model' |
9 | import { VideoComment } from './video-comment.model' | 9 | import { VideoComment } from './video-comment.model' |
10 | import { VideoCommentService } from './video-comment.service' | 10 | import { VideoCommentService } from './video-comment.service' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
12 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 11 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
13 | import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' | 12 | import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' |
14 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 13 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
@@ -40,8 +39,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
40 | private videoCommentService: VideoCommentService, | 39 | private videoCommentService: VideoCommentService, |
41 | private authService: AuthService, | 40 | private authService: AuthService, |
42 | private modalService: NgbModal, | 41 | private modalService: NgbModal, |
43 | private router: Router, | 42 | private router: Router |
44 | private i18n: I18n | ||
45 | ) { | 43 | ) { |
46 | super() | 44 | super() |
47 | } | 45 | } |
@@ -124,7 +122,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
124 | return this.form.value['text'] | 122 | return this.form.value['text'] |
125 | } | 123 | } |
126 | 124 | ||
127 | getUrl () { | 125 | getUri () { |
128 | return window.location.href | 126 | return window.location.href |
129 | } | 127 | } |
130 | 128 | ||