Put comments reply on the top
authorChocobozzz <me@florianbigard.com>
Wed, 21 Feb 2018 16:48:50 +0000 (17:48 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 21 Feb 2018 16:50:41 +0000 (17:50 +0100)
CHANGELOG.md
client/src/app/videos/+video-watch/comment/video-comment.component.ts

index d28674c6d1651cfadf11980245a70c3187d6160f..9fe96ea79e167078b1ca614ec8305c61dfa9d506 100644 (file)
@@ -1,5 +1,11 @@
 # Changelog
 
+## v0.0.27-alpha
+
+### Bug fixes
+
+ * Fix comment reply highlighting
+
 
 ## v0.0.26-alpha
 
index e7ba64b4d64813309975328b9c2d86a75cb7b78f..cfcefed830fe184c41b2b7931b6c7189e3236765 100644 (file)
@@ -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: []
     })