From 95555b5ec8cc9445b3e1ba0f8540d9fc6071e5e5 Mon Sep 17 00:00:00 2001
From: Sam
Date: Mon, 5 Mar 2018 11:11:21 +1100
Subject: [PATCH] If there are no settings do now show section
---
.../admin/templates/customize-themes-show.hbs | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/app/assets/javascripts/admin/templates/customize-themes-show.hbs b/app/assets/javascripts/admin/templates/customize-themes-show.hbs
index b51061359ba..fcd933553ca 100644
--- a/app/assets/javascripts/admin/templates/customize-themes-show.hbs
+++ b/app/assets/javascripts/admin/templates/customize-themes-show.hbs
@@ -105,16 +105,14 @@
{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
+ {{#if hasSettings}}
{{i18n "admin.customize.theme.theme_settings"}}
{{#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}}
{{i18n "admin.customize.theme.theme_components"}}