UX: Hide category settings badges checkbox when enable_badges is off

This commit is contained in:
Penar Musaraj 2020-09-02 11:23:46 -04:00
parent 0a492829ea
commit 50827684d5
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7

View File

@ -46,12 +46,14 @@
</div>
</section>
<section class="field">
<label>
{{input type="checkbox" checked=category.allow_badges}}
{{i18n "category.allow_badges_label"}}
</label>
</section>
{{#if siteSettings.enable_badges}}
<section class="field allow-badges">
<label>
{{input type="checkbox" checked=category.allow_badges}}
{{i18n "category.allow_badges_label"}}
</label>
</section>
{{/if}}
{{#if siteSettings.topic_featured_link_enabled}}
<section class="field">