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 },
|
||||
f: { 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
|
||||
|
|
|
@ -40,6 +40,7 @@ class TopicQuery
|
|||
end
|
||||
|
||||
def self.public_valid_options
|
||||
# For these to work in Ember, add them to `controllers/discovery-sortable.js`
|
||||
@public_valid_options ||=
|
||||
%i(page
|
||||
before
|
||||
|
|
Loading…
Reference in New Issue