FIX: Remove useless no_query_hook text and move create & import buttons to top right
This commit is contained in:
parent
6904e516ae
commit
dc91b7d0cd
|
@ -5,9 +5,9 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#unless selectedQueryId}}
|
{{#unless selectedQueryId}}
|
||||||
<div class="query-list">
|
<div class="query-list">
|
||||||
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}}
|
{{combo-box valueAttribute="id" class="btn-left" 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="showCreate" icon="plus" class="no-text btn-right"}}
|
||||||
{{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
|
{{d-button action="importQuery" label="explorer.import.label" icon="upload btn-right"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if showCreate}}
|
{{#if showCreate}}
|
||||||
|
@ -23,14 +23,10 @@
|
||||||
{{i18n "explorer.others_dirty"}}
|
{{i18n "explorer.others_dirty"}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<hr>
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if content.length}}
|
{{#if content.length}}
|
||||||
{{#if selectedItem.fake}}
|
{{#unless selectedItem.fake}}
|
||||||
<p>{{i18n "explorer.no_query_selected"}} <a {{action "showCreate"}}>{{i18n "explorer.no_query_selected_hook"}}</a></p>
|
|
||||||
{{else}}
|
|
||||||
<div class="query-edit {{if editName "editing"}}">
|
<div class="query-edit {{if editName "editing"}}">
|
||||||
{{#if selectedItem}}
|
{{#if selectedItem}}
|
||||||
{{#if editing}}
|
{{#if editing}}
|
||||||
|
@ -124,7 +120,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
{{/if}}
|
{{/unless}}
|
||||||
{{conditional-loading-spinner condition=loading}}
|
{{conditional-loading-spinner condition=loading}}
|
||||||
{{#unless selectedItem.fake}}
|
{{#unless selectedItem.fake}}
|
||||||
{{#if results}}
|
{{#if results}}
|
||||||
|
@ -199,8 +195,6 @@
|
||||||
|
|
||||||
<div class="explorer-pad-bottom"></div>
|
<div class="explorer-pad-bottom"></div>
|
||||||
|
|
||||||
{{else}}
|
|
||||||
<p>{{i18n "explorer.no_queries"}} <a {{action "showCreate"}}>{{i18n "explorer.no_queries_hook"}}</a></p>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/explorer-container}}
|
{{/explorer-container}}
|
||||||
|
|
|
@ -236,8 +236,11 @@
|
||||||
|
|
||||||
.query-list {
|
.query-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
.combo-box,
|
.btn-left {
|
||||||
button {
|
margin-right: 0.5em;
|
||||||
|
}
|
||||||
|
.btn-right {
|
||||||
|
margin-left: auto;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
li.none {
|
li.none {
|
||||||
|
|
|
@ -61,8 +61,4 @@ en:
|
||||||
explain_label: "Include query plan?"
|
explain_label: "Include query plan?"
|
||||||
save_params: "Set Defaults"
|
save_params: "Set Defaults"
|
||||||
reset_params: "Reset"
|
reset_params: "Reset"
|
||||||
no_queries: "There are no queries. Why not "
|
|
||||||
no_queries_hook: "create one?"
|
|
||||||
menu_none: "Select a query"
|
menu_none: "Select a query"
|
||||||
no_query_selected: "No query selected. Would you like to "
|
|
||||||
no_query_selected_hook: "create one?"
|
|
||||||
|
|
Loading…
Reference in New Issue