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

10 lines
267 B
JavaScript

import { scrollTop } from "discourse/mixins/scroll-top";
export default Discourse.Route.extend({
activate() {
this.controllerFor("admin-dashboard-next").fetchProblems();
this.controllerFor("admin-dashboard-next").fetchDashboard();
scrollTop();
}
});