mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
UX: Allow site settings to display as textareas if they like
This commit is contained in:
@ -195,6 +195,8 @@ module SiteSettingExtension
|
||||
opts.merge!({valid_values: choices[s].map{|c| {name: c, value: c}}, translate_names: false})
|
||||
end
|
||||
|
||||
opts[:textarea] = true if static_types[s] == :textarea
|
||||
|
||||
opts[:choices] = choices[s] if choices.has_key? s
|
||||
opts
|
||||
end
|
||||
|
Reference in New Issue
Block a user