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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
419 B
JavaScript
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.
**/
import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend({
2015-03-02 12:12:19 -05:00
beforeModel() {
this.replaceWith(
"adminSiteSettingsCategory",
this.controllerFor("adminSiteSettings").get("visibleSiteSettings")[0]
.nameKey
2015-03-02 12:12:19 -05:00
);
},
});