mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-06-29 02:52:11 +00:00
UX: better blank state (create vs select a query)
This commit is contained in:
parent
7077a646c0
commit
aca7b188f6
@ -25,8 +25,9 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
{{#if content.length}}
|
||||||
{{#if selectedItem.fake}}
|
{{#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}}
|
{{else}}
|
||||||
<div class="query-edit {{if editName "editing"}}">
|
<div class="query-edit {{if editName "editing"}}">
|
||||||
{{#if selectedItem}}
|
{{#if selectedItem}}
|
||||||
@ -67,9 +68,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{{#if everEditing}}
|
{{#if everEditing}}
|
||||||
{{d-button action="save" label="explorer.save" disabled=saveDisabled class="btn-primary"}}
|
{{d-button action="save" label="explorer.save" disabled=saveDisabled class="btn-primary"}}
|
||||||
@ -135,5 +135,8 @@
|
|||||||
|
|
||||||
<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}}
|
||||||
{{/explorer-container}}
|
{{/explorer-container}}
|
||||||
|
@ -59,3 +59,5 @@ en:
|
|||||||
no_queries: "There are no queries. Why not "
|
no_queries: "There are no queries. Why not "
|
||||||
no_queries_hook: "create one?"
|
no_queries_hook: "create one?"
|
||||||
menu_none: "Select a query"
|
menu_none: "Select a query"
|
||||||
|
no_query_selected: "Please select or "
|
||||||
|
no_query_selected_hook: "create one."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user