From: Chocobozzz Date: Wed, 21 Feb 2018 16:48:50 +0000 (+0100) Subject: Put comments reply on the top X-Git-Tag: v0.0.27-alpha~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86ec3e53ac75bc101959add910051f41a2b8245d;p=oweals%2Fpeertube.git Put comments reply on the top --- diff --git a/CHANGELOG.md b/CHANGELOG.md index d28674c6d..9fe96ea79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v0.0.27-alpha + +### Bug fixes + + * Fix comment reply highlighting + ## v0.0.26-alpha 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 e7ba64b4d..cfcefed83 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 @@ -57,7 +57,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { this.threadCreated.emit(this.commentTree) } - this.commentTree.children.push({ + this.commentTree.children.unshift({ comment: createdComment, children: [] })