FIX: a js error when reloading /admin/site_settings/category/:id
This commit is contained in:
parent
d9e4eec49f
commit
726b985ece
|
@ -13,7 +13,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P
|
|||
/**
|
||||
The list of settings based on the current filters
|
||||
|
||||
@property filteredContent
|
||||
@property filterContent
|
||||
**/
|
||||
filterContent: function() {
|
||||
|
||||
|
|
|
@ -9,5 +9,8 @@
|
|||
Discourse.AdminSiteSettingsCategoryRoute = Discourse.Route.extend({
|
||||
model: function(params) {
|
||||
this.controllerFor('adminSiteSettingsCategory').set('categoryNameKey', params.category_id);
|
||||
return this.modelFor('adminSiteSettings').find(function(category) {
|
||||
return category.nameKey === params.category_id;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue