X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment-add.component.ts;h=ac1d02d940dfafc20dcc9f6b08267b2c52348384;hb=b91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62;hp=fd85c28f2cb77c1af01ed456fa3ac8149b3e7eee;hpb=73471b1a52f242e86364ffb077ea6cadb3b07ae2;p=github%2FChocobozzz%2FPeerTube.git 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' import { Video } from '../../../shared/video/video.model' import { VideoComment } from './video-comment.model' import { VideoCommentService } from './video-comment.service' -import { I18n } from '@ngx-translate/i18n-polyfill' import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' @@ -40,8 +39,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { private videoCommentService: VideoCommentService, private authService: AuthService, private modalService: NgbModal, - private router: Router, - private i18n: I18n + private router: Router ) { super() } @@ -124,7 +122,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { return this.form.value['text'] } - getUrl () { + getUri () { return window.location.href }