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 | 7 |
1 files changed, 1 insertions, 6 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 f1f0dfeba..0e1362ad3 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 | |||
@@ -4,7 +4,7 @@ import { Router } from '@angular/router' | |||
4 | import { Notifier, User } from '@app/core' | 4 | import { Notifier, User } from '@app/core' |
5 | import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' | 5 | import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' |
6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' |
7 | import { Video, Account } from '@app/shared/shared-main' | 7 | import { Video } from '@app/shared/shared-main' |
8 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' | 8 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' |
9 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 9 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
10 | import { VideoCommentCreate } from '@shared/models' | 10 | import { VideoCommentCreate } from '@shared/models' |
@@ -143,11 +143,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
143 | return window.location.href | 143 | return window.location.href |
144 | } | 144 | } |
145 | 145 | ||
146 | getAvatarUrl () { | ||
147 | if (this.user) return this.user.accountAvatarUrl | ||
148 | return Account.GET_DEFAULT_AVATAR_URL() | ||
149 | } | ||
150 | |||
151 | gotoLogin () { | 146 | gotoLogin () { |
152 | this.hideModals() | 147 | this.hideModals() |
153 | this.router.navigate([ '/login' ]) | 148 | this.router.navigate([ '/login' ]) |