UX: Show a warning on the category edit page when category style is none and colors are disabled. (#11742)

This commit is contained in:
Roman Rizzi 2021-01-18 13:13:38 -03:00 committed by GitHub
parent 650e3d18c4
commit 19b2011601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -50,8 +50,13 @@
</section>
{{/if}}
{{#unless noCategoryStyle}}
<section class="field">
<section class="field">
{{#if noCategoryStyle}}
<label>
{{d-icon "exclamation-triangle"}}
{{i18n "category.colors_disabled"}}
</label>
{{else}}
<label>{{i18n "category.badge_colors"}}</label>
<div class="category-color-editor">
{{html-safe categoryBadgePreview}}
@ -72,6 +77,6 @@
</div>
</div>
</div>
</section>
{{/unless}}
{{/if}}
</section>
</form>

View File

@ -3085,6 +3085,7 @@ en:
list_filters:
all: "all topics"
none: "no subcategories"
colors_disabled: "You cant select colors because you have a category style of none."
flagging:
title: "Thanks for helping to keep our community civil!"