mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:18:18 +08:00
FIX: topics sorting in tag pages is broken.
This commit is contained in:
parent
8cc09fc668
commit
26186ee6af
|
@ -5,6 +5,7 @@ import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
|||
import BulkTopicSelection from "discourse/mixins/bulk-topic-selection";
|
||||
import NavItem from "discourse/models/nav-item";
|
||||
import FilterModeMixin from "discourse/mixins/filter-mode";
|
||||
import { queryParams } from "discourse/controllers/discovery-sortable";
|
||||
|
||||
export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
|
||||
application: inject(),
|
||||
|
@ -53,15 +54,7 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
|
|||
);
|
||||
},
|
||||
|
||||
queryParams: [
|
||||
"order",
|
||||
"ascending",
|
||||
"status",
|
||||
"state",
|
||||
"search",
|
||||
"max_posts",
|
||||
"q"
|
||||
],
|
||||
queryParams: Object.keys(queryParams),
|
||||
|
||||
@discourseComputed("category", "tag.id", "filterType", "noSubcategories")
|
||||
navItems(category, tagId, filterType, noSubcategories) {
|
||||
|
@ -116,7 +109,7 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
|
|||
this.setProperties({ order, ascending: false });
|
||||
}
|
||||
|
||||
this.send("invalidateModel");
|
||||
this.transitionToRoute({ queryParams: { order, ascending: this.ascending }});
|
||||
},
|
||||
|
||||
toggleInfo() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user