mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 06:14:54 +00:00
- moderation tab - sorting/pagination - improved third party reports support - trending charts - better perf - many fixes - refactoring - new reports Co-Authored-By: Simon Cossar <scossar@users.noreply.github.com>
24 lines
625 B
JavaScript
24 lines
625 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();
|
|
},
|
|
|
|
afterModel(model, transition) {
|
|
if (transition.targetName === "admin.dashboardNext.index") {
|
|
this.transitionTo("admin.dashboardNext.general");
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
willTransition(transition) {
|
|
if (transition.targetName === "admin.dashboardNext.index") {
|
|
this.transitionTo("admin.dashboardNext.general");
|
|
}
|
|
}
|
|
}
|
|
});
|