2021-10-19 17:26:27 +03:00
|
|
|
<div class="gh-stack-item {{if (eq @index 0) "gh-setting-first" "gh-setting"}}">
|
2021-09-28 18:12:01 +03:00
|
|
|
<div class="flex-grow-1">
|
|
|
|
<label class="gh-setting-title gh-theme-setting-title" for={{this.selectId}}>
|
2021-10-12 12:11:24 +03:00
|
|
|
{{humanize-setting-key @setting.key}}
|
2021-09-28 18:12:01 +03:00
|
|
|
</label>
|
|
|
|
|
2021-10-20 17:57:37 +03:00
|
|
|
<span class="gh-select">
|
|
|
|
<select class="ember-select" name={{this.selectName}} id={{this.selectId}} {{on "change" this.setSelection}}>
|
|
|
|
{{#each @setting.options as |settingOption|}}
|
|
|
|
<option value={{settingOption}} selected={{eq settingOption @setting.value}}>
|
|
|
|
{{settingOption}}
|
|
|
|
{{#if (eq settingOption @setting.default)}}(default){{/if}}
|
|
|
|
</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
{{svg-jar "arrow-down-small"}}
|
|
|
|
</span>
|
2021-09-28 18:12:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|