From 86ec3e53ac75bc101959add910051f41a2b8245d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Feb 2018 17:48:50 +0100 Subject: [PATCH] Put comments reply on the top --- CHANGELOG.md | 6 ++++++ .../videos/+video-watch/comment/video-comment.component.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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: [] })