mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
10 lines
302 B
Text
10 lines
302 B
Text
|
/**
|
||
|
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);
|
||
|
}
|
||
|
});
|