FIX: show more results on search page was not performing a new search

We always want to update model if query params are changed on topic list
This commit is contained in:
Sam 2015-07-13 11:13:13 +10:00
parent d247c002bc
commit 078177cf79

View File

@ -2,13 +2,13 @@ import DiscourseController from 'discourse/controllers/controller';
// Just add query params here to have them automatically passed to topic list filters. // Just add query params here to have them automatically passed to topic list filters.
export var queryParams = { export var queryParams = {
order: { replace: true }, order: { replace: true, refreshModel: true },
ascending: { replace: true }, ascending: { replace: true, refreshModel: true },
status: { replace: true }, status: { replace: true, refreshModel: true },
state: { replace: true }, state: { replace: true, refreshModel: true },
search: { replace: true }, search: { replace: true, refreshModel: true },
max_posts: { replace: true }, max_posts: { replace: true, refreshModel: true },
q: { replace: true } q: { replace: true, refreshModel: true }
}; };
// Basic controller options // Basic controller options