FIX: Ensure all public topic-query options can be used via Ember (#17706)

This commit is contained in:
David Taylor 2022-07-29 00:03:53 +01:00 committed by GitHub
parent 119fad5e14
commit 497d9849d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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