FIX: Search does not retrigger when context has changed. Take 2.

https://meta.discourse.org/t/using-the-search-this-topic-check-box-blocks-search-on-other-pages/56832/6?u=tgxworld
This commit is contained in:
Guo Xiang Tan
2018-08-20 15:46:02 +08:00
parent f5fe58384f
commit 658b55c406
4 changed files with 27 additions and 5 deletions

View File

@ -33,14 +33,14 @@ export function success() {
}
const loggedIn = () => !!Discourse.User.current();
const helpers = { response, success, parsePostData };
export let fixturesByUrl;
export default function() {
const server = new Pretender(function() {
storePretender.call(this, helpers);
flagPretender.call(this, helpers);
const fixturesByUrl = fixturePretender.call(this, helpers);
fixturesByUrl = fixturePretender.call(this, helpers);
this.get("/admin/plugins", () => response({ plugins: [] }));