FIX: Correct sorting issues
This commit is contained in:
parent
7ff3641986
commit
b88723a3b1
|
@ -46,11 +46,9 @@ export default UserTopicsList.extend({
|
||||||
changeSort(sortBy) {
|
changeSort(sortBy) {
|
||||||
if (sortBy === this.order) {
|
if (sortBy === this.order) {
|
||||||
this.toggleProperty("ascending");
|
this.toggleProperty("ascending");
|
||||||
this.model.refreshSort(sortBy, this.ascending);
|
|
||||||
this.refreshModel();
|
this.refreshModel();
|
||||||
} else {
|
} else {
|
||||||
this.setProperties({ order: sortBy, ascending: false });
|
this.setProperties({ order: sortBy, ascending: false });
|
||||||
this.model.refreshSort(sortBy, false);
|
|
||||||
this.refreshModel();
|
this.refreshModel();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue