diff --git a/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 b/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 index 02be5aa5e6f..0eaa00ff84c 100644 --- a/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 +++ b/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 @@ -5,6 +5,10 @@ export default Em.Component.extend({ active: Discourse.computed.propertyEqual('selectedTab', 'tab'), title: Discourse.computed.i18n('tab', 'category.%@'), + _insertInParent: function() { + this.get('parentView.panels').addObject(this.get('tab')); + }.on('didInsertElement'), + actions: { select: function() { this.set('selectedTab', this.get('tab')); diff --git a/app/assets/javascripts/discourse/templates/modal/edit-category.js.handlebars b/app/assets/javascripts/discourse/templates/modal/edit-category.js.handlebars index 40c1e83e54a..e40e61f5515 100644 --- a/app/assets/javascripts/discourse/templates/modal/edit-category.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/edit-category.js.handlebars @@ -8,12 +8,11 @@