mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 13:00:34 +08:00
13 lines
320 B
JavaScript
13 lines
320 B
JavaScript
/**
|
|
Handles when you click the Site Settings tab in admin, but haven't
|
|
chosen a category. It will redirect to the first category.
|
|
**/
|
|
export default Discourse.Route.extend({
|
|
beforeModel() {
|
|
this.replaceWith(
|
|
"adminSiteSettingsCategory",
|
|
this.modelFor("adminSiteSettings")[0].nameKey
|
|
);
|
|
}
|
|
});
|