Fix edit category modal for uncategorized when showing it the second time
This commit is contained in:
parent
27fbd232d4
commit
5a4b939cf7
|
@ -13,7 +13,11 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
|
||||||
settingsSelected: Ember.computed.equal('selectedTab', 'settings'),
|
settingsSelected: Ember.computed.equal('selectedTab', 'settings'),
|
||||||
foregroundColors: ['FFFFFF', '000000'],
|
foregroundColors: ['FFFFFF', '000000'],
|
||||||
|
|
||||||
descriptionChanged: function() {
|
onShow: function() {
|
||||||
|
this.changeSize();
|
||||||
|
},
|
||||||
|
|
||||||
|
changeSize: function() {
|
||||||
if (this.present('description')) {
|
if (this.present('description')) {
|
||||||
this.set('controllers.modal.modalClass', 'edit-category-modal full');
|
this.set('controllers.modal.modalClass', 'edit-category-modal full');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue