mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Ensure all public topic-query options can be used via Ember (#17706)
This commit is contained in:
parent
119fad5e14
commit
497d9849d3
@ -14,6 +14,13 @@ export const queryParams = {
|
|||||||
bumped_before: { replace: true, refreshModel: true },
|
bumped_before: { replace: true, refreshModel: true },
|
||||||
f: { replace: true, refreshModel: true },
|
f: { replace: true, refreshModel: true },
|
||||||
period: { replace: true, refreshModel: true },
|
period: { replace: true, refreshModel: true },
|
||||||
|
topic_ids: { replace: true, refreshModel: true },
|
||||||
|
group_name: { replace: true, refreshModel: true },
|
||||||
|
tags: { replace: true, refreshModel: true },
|
||||||
|
match_all_tags: { replace: true, refreshModel: true },
|
||||||
|
no_subcategories: { replace: true, refreshModel: true },
|
||||||
|
no_tags: { replace: true, refreshModel: true },
|
||||||
|
exclude_tag: { replace: true, refreshModel: true },
|
||||||
};
|
};
|
||||||
|
|
||||||
// Basic controller options
|
// Basic controller options
|
||||||
|
@ -40,6 +40,7 @@ class TopicQuery
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.public_valid_options
|
def self.public_valid_options
|
||||||
|
# For these to work in Ember, add them to `controllers/discovery-sortable.js`
|
||||||
@public_valid_options ||=
|
@public_valid_options ||=
|
||||||
%i(page
|
%i(page
|
||||||
before
|
before
|
||||||
|
Loading…
Reference in New Issue
Block a user