2015-03-02 12:12:19 -05:00
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model(params) {
|
2013-11-15 16:43:56 -05:00
|
|
|
// The model depends on user input, so let the controller do the work:
|
2013-11-14 12:37:41 -05:00
|
|
|
this.controllerFor('adminSiteSettingsCategory').set('categoryNameKey', params.category_id);
|
2015-03-02 12:12:19 -05:00
|
|
|
return Ember.Object.create({
|
2013-11-15 16:43:56 -05:00
|
|
|
nameKey: params.category_id,
|
|
|
|
name: I18n.t('admin.site_settings.categories.' + params.category_id),
|
|
|
|
siteSettings: this.controllerFor('adminSiteSettingsCategory').get('filteredContent')
|
2013-11-14 16:50:34 -05:00
|
|
|
});
|
2013-11-13 14:02:47 -05:00
|
|
|
}
|
|
|
|
});
|