Skip to content

A platform for community discussion. Free, open, simple.

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

David Taylor49e70734382b
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 31cd1344e7d..049563bd555 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>