discourse/app/assets/javascripts/admin/addon/components/site-settings/integer.hbs

11 lines
380 B
Handlebars

<input
{{on "input" (with-event-value (fn (mut this.value)))}}
type="number"
value={{this.value}}
min={{if this.setting.min this.setting.min null}}
max={{if this.setting.max this.setting.max null}}
class="input-setting-integer"
/>
<SettingValidationMessage @message={{this.validationMessage}} />
<SiteSettings::Description @description={{this.setting.description}} />