FIX: Hide advanced theme fields behind a flag, pending UI improvement

FIX: Hide advanced theme fields behind a flag, pending UI improvement

diff --git a/app/assets/javascripts/admin/templates/components/admin-theme-editor.hbs b/app/assets/javascripts/admin/templates/components/admin-theme-editor.hbs
index 31cd134..049563b 100644
--- a/app/assets/javascripts/admin/templates/components/admin-theme-editor.hbs
+++ b/app/assets/javascripts/admin/templates/components/admin-theme-editor.hbs
@@ -19,14 +19,18 @@
             {{/link-to}}
         </li>
         {{/each}}
+        
+        {{#if allowAdvanced}}
         <li>
-        <a {{action "toggleShowAdvanced"}} 
-            class='no-text' 
-            title="{{i18n (concat "admin.customize.theme." (if showAdvanced "hide_advanced" "show_advanced"))}}"
-        >
-            {{d-icon (if showAdvanced "angle-double-left" "angle-double-right")}}   
-        </a>
+            <a {{action "toggleShowAdvanced"}} 
+                class='no-text' 
+                title="{{i18n (concat "admin.customize.theme." (if showAdvanced "hide_advanced" "show_advanced"))}}"
+            >
+                {{d-icon (if showAdvanced "angle-double-left" "angle-double-right")}}   
+            </a>
         </li>
+        {{/if}}
+
         <li class="spacer"></li>
         <li>
         <label>

GitHub sha: 49e70734

1 Like