Skip to content
Snippets Groups Projects
Commit fb337e72 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Change sort order for participants to 'time'

parent 65fe8bc4
1 merge request!257Improve comment-list view + 2 bug fixes
Pipeline #27462 passed with stages
in 6 minutes and 56 seconds
...@@ -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 => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment