mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 19:03:49 +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 },
|
||
|
});
|
||
|
}
|
||
|
}
|