aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comment.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
index 5491023ee..17e7e28ca 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
@@ -75,7 +75,7 @@ export class VideoCommentComponent implements OnInit, OnChanges {
75 75
76 this.resetReply.emit() 76 this.resetReply.emit()
77 77
78 delete this.redraftValue 78 this.redraftValue = undefined
79 } 79 }
80 80
81 onWantToReply (comment?: VideoComment) { 81 onWantToReply (comment?: VideoComment) {
@@ -133,6 +133,10 @@ export class VideoCommentComponent implements OnInit, OnChanges {
133 ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() 133 ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL()
134 } 134 }
135 135
136 isNotDeletedOrDeletedWithReplies () {
137 return !this.comment.isDeleted || this.comment.isDeleted && this.comment.totalReplies !== 0
138 }
139
136 private getUserIfNeeded (account: Account) { 140 private getUserIfNeeded (account: Account) {
137 if (!account.userId) return 141 if (!account.userId) return
138 if (!this.authService.isLoggedIn()) return 142 if (!this.authService.isLoggedIn()) return