mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: Edit category button was broken
This commit is contained in:
@ -122,7 +122,7 @@ const ApplicationRoute = Discourse.Route.extend({
|
|||||||
const self = this;
|
const self = this;
|
||||||
Discourse.Category.reloadById(category.get('id')).then(function (c) {
|
Discourse.Category.reloadById(category.get('id')).then(function (c) {
|
||||||
self.site.updateCategory(c);
|
self.site.updateCategory(c);
|
||||||
showModal(self, 'editCategory', c);
|
showModal('editCategory', c);
|
||||||
self.controllerFor('editCategory').set('selectedTab', 'general');
|
self.controllerFor('editCategory').set('selectedTab', 'general');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user