discourse/app/assets/javascripts/admin/addon/components/site-settings/enum.hbs
Jarek Radosz 11067c73d0
DEV: Use fn+mut instead of action+mut (#26057)
One step closer to removing all `action` helper usage
2024-03-06 18:05:03 +01:00

16 lines
444 B
Handlebars

<ComboBox
@content={{this.setting.validValues}}
@value={{this.value}}
@onChange={{fn (mut this.value)}}
@valueProperty={{this.setting.computedValueProperty}}
@nameProperty={{this.setting.computedNameProperty}}
@options={{hash castInteger=true allowAny=this.setting.allowsNone}}
/>
{{this.preview}}
<SettingValidationMessage @message={{this.validationMessage}} />
<div class="desc">
{{html-safe this.setting.description}}
</div>