diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-08-12 12:43:26 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-14 15:03:38 +0200 |
commit | fdd1296521354401e9927e5faeb0aa17ba810c41 (patch) | |
tree | 51a0e4db94db8736c51aec0b714c3cf0bda1ad9d /client/src/app/+videos/+video-watch/comment/video-comments.component.ts | |
parent | e548a7c9b0c0d8bead03dd49ea86c600515e42db (diff) | |
download | PeerTube-fdd1296521354401e9927e5faeb0aa17ba810c41.tar.gz PeerTube-fdd1296521354401e9927e5faeb0aa17ba810c41.tar.zst PeerTube-fdd1296521354401e9927e5faeb0aa17ba810c41.zip |
Small refactor comments
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comments.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comments.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts index 9e8e143c2..adce31c5b 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts | |||
@@ -133,7 +133,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
133 | 133 | ||
134 | onCommentThreadCreated (comment: VideoComment) { | 134 | onCommentThreadCreated (comment: VideoComment) { |
135 | this.comments.unshift(comment) | 135 | this.comments.unshift(comment) |
136 | delete this.commentThreadRedraftValue | 136 | this.commentThreadRedraftValue = undefined |
137 | } | 137 | } |
138 | 138 | ||
139 | onWantedToReply (comment: VideoComment) { | 139 | onWantedToReply (comment: VideoComment) { |
@@ -142,7 +142,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
142 | 142 | ||
143 | onResetReply () { | 143 | onResetReply () { |
144 | this.inReplyToCommentId = undefined | 144 | this.inReplyToCommentId = undefined |
145 | delete this.commentReplyRedraftValue | 145 | this.commentReplyRedraftValue = undefined |
146 | } | 146 | } |
147 | 147 | ||
148 | onThreadCreated (commentTree: VideoCommentThreadTree) { | 148 | onThreadCreated (commentTree: VideoCommentThreadTree) { |