mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 13:37:55 +08:00
Some tweaks to category modal
This commit is contained in:
parent
f3282e33a3
commit
2265c046ba
@ -8,7 +8,7 @@
|
|||||||
**/
|
**/
|
||||||
Discourse.EditCategoryView = Discourse.ModalBodyView.extend({
|
Discourse.EditCategoryView = Discourse.ModalBodyView.extend({
|
||||||
templateName: 'modal/edit_category',
|
templateName: 'modal/edit_category',
|
||||||
generalSelected: Ember.computed.equal('selectedTab', 'general'),
|
generalSelected: Ember.computed.equal('selectedTab', 'general'),
|
||||||
securitySelected: Ember.computed.equal('selectedTab', 'security'),
|
securitySelected: Ember.computed.equal('selectedTab', 'security'),
|
||||||
settingsSelected: Ember.computed.equal('selectedTab', 'settings'),
|
settingsSelected: Ember.computed.equal('selectedTab', 'settings'),
|
||||||
foregroundColors: ['FFFFFF', '000000'],
|
foregroundColors: ['FFFFFF', '000000'],
|
||||||
@ -20,7 +20,7 @@ Discourse.EditCategoryView = Discourse.ModalBodyView.extend({
|
|||||||
|
|
||||||
modalClass: function() {
|
modalClass: function() {
|
||||||
return "edit-category-modal " + (this.present('category.description') ? 'full' : 'small');
|
return "edit-category-modal " + (this.present('category.description') ? 'full' : 'small');
|
||||||
}.property(),
|
}.property('category.description'),
|
||||||
|
|
||||||
selectGeneral: function() {
|
selectGeneral: function() {
|
||||||
this.set('selectedTab', 'general');
|
this.set('selectedTab', 'general');
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
height: 350px;
|
height: 350px;
|
||||||
}
|
}
|
||||||
&.small .modal-body {
|
&.small .modal-body {
|
||||||
height: 280px;
|
height: 290px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user