Don't show description text on Create Category modal

This commit is contained in:
Neil Lalonde 2014-02-26 13:29:02 -05:00
parent 043901ef46
commit 1165aa2dae
2 changed files with 6 additions and 2 deletions

View file

@ -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() {

View file

@ -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>