discourse/app/assets/javascripts/admin/addon/routes/admin-customize-theme-components.js
2024-03-06 18:05:11 +01:00

15 lines
382 B
JavaScript

import Route from "@ember/routing/route";
import { 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 },
});
}
}