mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:35:31 +08:00
e113eff663
Currently, if you set an integer site setting in the admin interface and include thousands separators, you will silently configure the wrong value. This PR replaces TextField inputs for integer site settings with NumberField. It also cleans the numeric input of any non-digits in the backend in case any separators make it through.
4 lines
202 B
Handlebars
4 lines
202 B
Handlebars
<NumberField @value={{this.value}} @classNames="input-setting-integer" />
|
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
<div class="desc">{{html-safe this.setting.description}}</div> |