mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
UX: Show a warning on the category edit page when category style is none and colors are disabled. (#11742)
This commit is contained in:
parent
650e3d18c4
commit
19b2011601
|
@ -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>
|
||||
|
|
|
@ -3085,6 +3085,7 @@ en:
|
|||
list_filters:
|
||||
all: "all topics"
|
||||
none: "no subcategories"
|
||||
colors_disabled: "You can’t select colors because you have a category style of none."
|
||||
|
||||
flagging:
|
||||
title: "Thanks for helping to keep our community civil!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user