diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts index 9a9bfe710..033097084 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts | |||
@@ -13,7 +13,6 @@ import { | |||
13 | SimpleChanges, | 13 | SimpleChanges, |
14 | ViewChild | 14 | ViewChild |
15 | } from '@angular/core' | 15 | } from '@angular/core' |
16 | import { Router } from '@angular/router' | ||
17 | import { Notifier, User } from '@app/core' | 16 | import { Notifier, User } from '@app/core' |
18 | import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' | 17 | import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' |
19 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' | 18 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
@@ -52,7 +51,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
52 | private notifier: Notifier, | 51 | private notifier: Notifier, |
53 | private videoCommentService: VideoCommentService, | 52 | private videoCommentService: VideoCommentService, |
54 | private modalService: NgbModal, | 53 | private modalService: NgbModal, |
55 | private router: Router, | ||
56 | @Inject(LOCALE_ID) private localeId: string | 54 | @Inject(LOCALE_ID) private localeId: string |
57 | ) { | 55 | ) { |
58 | super() | 56 | super() |
@@ -161,11 +159,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
161 | return window.location.href | 159 | return window.location.href |
162 | } | 160 | } |
163 | 161 | ||
164 | gotoLogin () { | ||
165 | this.hideModals() | ||
166 | this.router.navigate([ '/login' ]) | ||
167 | } | ||
168 | |||
169 | cancelCommentReply () { | 162 | cancelCommentReply () { |
170 | this.cancel.emit(null) | 163 | this.cancel.emit(null) |
171 | this.form.value['text'] = this.textareaElement.nativeElement.value = '' | 164 | this.form.value['text'] = this.textareaElement.nativeElement.value = '' |