From 4af28311ab3dbd10372ba315953bdab85eb7d5fe Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sun, 19 Aug 2018 16:28:24 +0530 Subject: [PATCH] hide controls on query page --- .../templates/admin/plugins-explorer.hbs | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs index 4a5149a..4c5af37 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs @@ -3,27 +3,29 @@ {{#if disallow}}

{{i18n "explorer.admins_only"}}

{{else}} -
- {{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}} - {{d-button action="showCreate" icon="plus" class="no-text"}} - {{d-button action="importQuery" label="explorer.import.label" icon="upload"}} -
- - {{#if showCreate}} -
- {{text-field value=newQueryName placeholderKey="explorer.create_placeholder"}} - {{d-button action="create" disabled=createDisabled label="explorer.create" icon="plus" class="btn-primary"}} + {{#unless selectedQueryId}} +
+ {{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}} + {{d-button action="showCreate" icon="plus" class="no-text"}} + {{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
- {{/if}} - {{#if othersDirty}} -
- {{fa-icon "warning"}} - {{i18n "explorer.others_dirty"}} -
- {{/if}} + {{#if showCreate}} +
+ {{text-field value=newQueryName placeholderKey="explorer.create_placeholder"}} + {{d-button action="create" disabled=createDisabled label="explorer.create" icon="plus" class="btn-primary"}} +
+ {{/if}} -
+ {{#if othersDirty}} +
+ {{fa-icon "warning"}} + {{i18n "explorer.others_dirty"}} +
+ {{/if}} + +
+ {{/unless}} {{#if content.length}} {{#if selectedItem.fake}}