FIX: change the controller method name to match its new name.

The controller method `_changeFilters` is now changed to `changeFilters` in the commit 1fc58b5a4e. But it was not modified in the `admin-tools` service script.
This commit is contained in:
Vinoth Kannan 2020-08-13 00:58:35 +05:30
parent c68563a281
commit 6a8562894a

View File

@ -3,7 +3,6 @@ import I18n from "I18n";
// and the admin application. Use this if you need front end code to access admin
// modules. Inject it optionally, and if it exists go to town!
import EmberObject from "@ember/object";
import AdminUser from "admin/models/admin-user";
import { iconHTML } from "discourse-common/lib/icon-library";
import { ajax } from "discourse/lib/ajax";
@ -25,8 +24,7 @@ export default Service.extend({
"controller:adminLogs.staffActionLogs"
);
target.transitionToRoute("adminLogs.staffActionLogs").then(() => {
controller.set("filters", EmberObject.create());
controller._changeFilters(filters);
controller.changeFilters(filters);
});
},