mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 02:41:20 +08:00
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
No EOL
202 B
Handlebars
Vendored
4 lines
No EOL
202 B
Handlebars
Vendored
<NumberField @value={{this.value}} @classNames="input-setting-integer" />
|
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
<div class="desc">{{html-safe this.setting.description}}</div> |