mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:53:39 +08:00
33db93c9b2
Per https://deprecations.emberjs.com/v3.x/#toc_routing-transition-methods We are upgrading all `this.replaceWith` calls on routes to directly call the router service (`this.router.replaceWith`)
11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class AdminCustomizeEmailStyleIndexRoute extends Route {
|
|
@service router;
|
|
|
|
beforeModel() {
|
|
this.router.replaceWith("adminCustomizeEmailStyle.edit", "html");
|
|
}
|
|
}
|