2021-09-21 17:58:08 +03:00
|
|
|
<div class="gh-stack">
|
2021-09-28 18:12:01 +03:00
|
|
|
<form>
|
|
|
|
{{#each @themeSettings as |setting index|}}
|
|
|
|
{{#if (eq setting.type "select")}}
|
2021-09-30 15:28:26 +03:00
|
|
|
<CustomThemeSettings::Select @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
2021-09-28 18:12:01 +03:00
|
|
|
{{/if}}
|
2021-10-13 19:55:17 +03:00
|
|
|
{{#if (eq setting.type "boolean")}}
|
|
|
|
<CustomThemeSettings::Boolean @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
|
|
{{/if}}
|
2021-10-14 12:35:39 +03:00
|
|
|
{{#if (eq setting.type "color")}}
|
|
|
|
<CustomThemeSettings::Color @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
|
|
{{/if}}
|
2021-10-14 17:40:22 +03:00
|
|
|
{{#if (eq setting.type "text")}}
|
|
|
|
<CustomThemeSettings::Text @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
|
|
{{/if}}
|
2021-10-14 20:42:59 +03:00
|
|
|
{{#if (eq setting.type "image")}}
|
|
|
|
<CustomThemeSettings::Image @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
|
|
{{/if}}
|
2021-09-28 18:12:01 +03:00
|
|
|
{{/each}}
|
|
|
|
</form>
|
2021-09-21 17:58:08 +03:00
|
|
|
</div>
|