mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 18:35:11 +08:00
986fb522be
This commit adds an /admin/customize/theme-components route, that opens the theme page with the components tab pre-selected, so people can navigate to that directly.
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 },
|
|
});
|
|
}
|
|
}
|