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

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

11 lines
338 B
JavaScript
Raw Normal View History

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