discourse/app/assets/javascripts/admin/addon/routes/admin-reports-index.js
Isaac Janzen 011ba5b9f6
DEV: Update transitionTo on Route (#22644)
Per https://deprecations.emberjs.com/v3.x/#toc_routing-transition-methods

We are upgrading all `this.transitionTo` calls on routes to directly call the router service (`this.router.transitionTo`)
2023-07-18 14:52:55 -05:00

11 lines
279 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
import { inject as service } from "@ember/service";
export default class AdminReportsIndexRoute extends DiscourseRoute {
@service router;
beforeModel() {
this.router.transitionTo("admin.dashboardReports");
}
}