FEATURE: Check if selectable avatars exist before enabling them (#10032)

This commit is contained in:
Bianca Nenciu
2020-06-22 16:58:26 +03:00
committed by GitHub
parent 685646540a
commit 68f767a557
6 changed files with 53 additions and 7 deletions

View File

@@ -2255,6 +2255,7 @@ en:
max_username_length_exists: "You cannot set the maximum username length below the longest username (%{username})."
max_username_length_range: "You cannot set the maximum below the minimum."
invalid_hex_value: "Color values have to be 6-digit hexadecimal codes."
empty_selectable_avatars: "You must first upload at least two selectable avatars before enabling this setting."
category_search_priority:
very_low_weight_invalid: "You cannot set the weight to be greater than 'category_search_priority_low_weight'."
low_weight_invalid: "You cannot set the weight to be greater or equal to 1 or smaller than 'category_search_priority_very_low_weight'."

View File

@@ -1241,6 +1241,7 @@ files:
selectable_avatars_enabled:
default: false
client: true
validator: "SelectableAvatarsEnabledValidator"
selectable_avatars:
default: ""
type: uploaded_image_list