discourse/app/assets/javascripts/admin/routes/admin-site-settings-index.j...

13 lines
320 B
Plaintext
Raw Normal View History

2015-03-02 12:12:19 -05:00
/**
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() {
2018-06-15 11:03:24 -04:00
this.replaceWith(
"adminSiteSettingsCategory",
this.modelFor("adminSiteSettings")[0].nameKey
);
2015-03-02 12:12:19 -05:00
}
});