UX: better blank state (create vs select a query)

This commit is contained in:
Régis Hanol 2018-05-09 22:06:20 +02:00
parent 7077a646c0
commit aca7b188f6
2 changed files with 102 additions and 97 deletions

View File

@ -25,8 +25,9 @@
<hr>
{{#if content.length}}
{{#if selectedItem.fake}}
{{i18n "explorer.no_queries"}} <a {{action "showCreate"}}>{{i18n "explorer.no_queries_hook"}}</a>
<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"}}">
{{#if selectedItem}}
@ -67,9 +68,8 @@
</div>
{{/if}}
<div class="clear"></div>
<div class="pull-left">
{{#if everEditing}}
{{d-button action="save" label="explorer.save" disabled=saveDisabled class="btn-primary"}}
@ -135,5 +135,8 @@
<div class="explorer-pad-bottom"></div>
{{else}}
<p>{{i18n "explorer.no_queries"}} <a {{action "showCreate"}}>{{i18n "explorer.no_queries_hook"}}</a></p>
{{/if}}
{{/if}}
{{/explorer-container}}

View File

@ -59,3 +59,5 @@ en:
no_queries: "There are no queries. Why not "
no_queries_hook: "create one?"
menu_none: "Select a query"
no_query_selected: "Please select or "
no_query_selected_hook: "create one."