If there are no settings do now show section

This commit is contained in:
Sam 2018-03-05 11:11:21 +11:00
parent 2c25b9ae12
commit 95555b5ec8
1 changed files with 5 additions and 7 deletions

View File

@ -105,16 +105,14 @@
{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
</p>
{{#if hasSettings}}
<h3>{{i18n "admin.customize.theme.theme_settings"}}</h3>
{{#d-section class="form-horizontal theme settings"}}
{{#if hasSettings}}
{{#each settings as |setting|}}
{{theme-setting setting=setting model=model class="theme-setting"}}
{{/each}}
{{else}}
{{i18n "admin.customize.theme.no_settings"}}
{{/if}}
{{#each settings as |setting|}}
{{theme-setting setting=setting model=model class="theme-setting"}}
{{/each}}
{{/d-section}}
{{/if}}
{{#if availableChildThemes}}
<h3>{{i18n "admin.customize.theme.theme_components"}}</h3>