mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
011ba5b9f6
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`)
11 lines
276 B
JavaScript
11 lines
276 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class AdminLogsIndexRoute extends DiscourseRoute {
|
|
@service router;
|
|
|
|
redirect() {
|
|
this.router.transitionTo("adminLogs.staffActionLogs");
|
|
}
|
|
}
|