Skip to content
Snippets Groups Projects

Improve comment-list view + 2 bug fixes

All threads resolved!
Viewing commit fb337e72
Prev
Show latest version
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -32,7 +32,7 @@ export class CommentListComponent implements OnInit {
@@ -32,7 +32,7 @@ export class CommentListComponent implements OnInit {
voteasc = 'voteasc';
voteasc = 'voteasc';
votedesc = 'votedesc';
votedesc = 'votedesc';
time = 'time';
time = 'time';
currentSort = this.votedesc;
currentSort: string;
read = 'read';
read = 'read';
unread = 'unread';
unread = 'unread';
favorite = 'favorite';
favorite = 'favorite';
@@ -68,6 +68,9 @@ export class CommentListComponent implements OnInit {
@@ -68,6 +68,9 @@ export class CommentListComponent implements OnInit {
this.commentVoteMap.set(v.commentId, v);
this.commentVoteMap.set(v.commentId, v);
}
}
});
});
 
this.currentSort = this.time;
 
} else {
 
this.currentSort = this.votedesc;
}
}
this.commentService.getComments(this.roomId)
this.commentService.getComments(this.roomId)
.subscribe(comments => {
.subscribe(comments => {