mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Don't show description text on Create Category modal
This commit is contained in:
parent
043901ef46
commit
1165aa2dae
2 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue