discourse/app/assets/javascripts/admin/routes/admin-site-settings-categor...

12 lines
480 B
Plaintext
Raw Normal View History

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