mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 10:25:47 +08:00
Don't show description text on Create Category modal
This commit is contained in:
parent
043901ef46
commit
1165aa2dae
@ -99,6 +99,10 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
|
||||
return I18n.t('category.delete');
|
||||
}.property(),
|
||||
|
||||
showDescription: function() {
|
||||
return !this.get('isUncategorized') && this.get('id');
|
||||
}.property('isUncategorized', 'id'),
|
||||
|
||||
actions: {
|
||||
|
||||
selectGeneral: function() {
|
||||
|
@ -33,7 +33,7 @@
|
||||
{{/if}}
|
||||
</section>
|
||||
|
||||
{{#unless isUncategorized}}
|
||||
{{#if showDescription}}
|
||||
<section class='field'>
|
||||
<label>{{i18n category.description}}</label>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<button class="btn btn-small" {{action showCategoryTopic}}>{{i18n category.change_in_category_topic}}</button>
|
||||
{{/if}}
|
||||
</section>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
|
||||
<section class='field'>
|
||||
<label>{{i18n category.badge_colors}}</label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user