discourse/app/assets/javascripts/admin/routes/admin-dashboard.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
313 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
2019-04-01 06:39:49 -04:00
import { scrollTop } from "discourse/mixins/scroll-top";
export default DiscourseRoute.extend({
2019-04-01 06:39:49 -04:00
activate() {
this.controllerFor("admin-dashboard").fetchProblems();
this.controllerFor("admin-dashboard").fetchDashboard();
scrollTop();
}
});