mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: display validation under custom sidebar fields (#20772)
Before, incorrectly filled fields were marked with red border. Now, additional information under the field is displayed to notify the user what is incorrect. /t/93696
This commit is contained in:
committed by
GitHub
parent
db3d30af3a
commit
4047073292
@@ -163,6 +163,16 @@ task "javascript:update_constants" => :environment do
|
||||
export const SEARCH_PRIORITIES = #{Searchable::PRIORITIES.to_json};
|
||||
|
||||
export const SEARCH_PHRASE_REGEXP = '#{Search::PHRASE_MATCH_REGEXP_PATTERN}';
|
||||
|
||||
export const SIDEBAR_URL = {
|
||||
max_icon_length: #{SidebarUrl::MAX_ICON_LENGTH},
|
||||
max_name_length: #{SidebarUrl::MAX_NAME_LENGTH},
|
||||
max_value_length: #{SidebarUrl::MAX_VALUE_LENGTH}
|
||||
}
|
||||
|
||||
export const SIDEBAR_SECTION = {
|
||||
max_title_length: #{SidebarSection::MAX_TITLE_LENGTH},
|
||||
}
|
||||
JS
|
||||
|
||||
pretty_notifications = Notification.types.map { |n| " #{n[0]}: #{n[1]}," }.join("\n")
|
||||
|
||||
Reference in New Issue
Block a user