mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:53:39 +08:00
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
|
import Route from "@ember/routing/route";
|
||
|
import { inject as service } from "@ember/service";
|
||
|
import { COMPONENTS } from "admin/models/theme";
|
||
|
|
||
|
export default class AdminCustomizeThemeComponents extends Route {
|
||
|
@service router;
|
||
|
|
||
|
beforeModel(transition) {
|
||
|
transition.abort();
|
||
|
this.router.transitionTo("adminCustomizeThemes", {
|
||
|
queryParams: { tab: COMPONENTS },
|
||
|
});
|
||
|
}
|
||
|
}
|