mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 16:24:17 +08:00
e7f539df10
Why this change? Prior to this change, there is no description being displayed for objects typed theme setting because we were rendering a button instead of the components for the various setting types which will render the setting's description. What does this change do? 1. Introduce `SiteSettings::Description` compoment to centralise the HTML being rendered across all settings component. 2. Renders the `SiteSettings::Description` component after the edit button in `site_setting.hbs`.
13 lines
448 B
Handlebars
13 lines
448 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}} />
|
|
<SiteSettings::Description @description={{this.setting.description}} /> |