Adding placeholder for none state
This commit is contained in:
parent
1d6dc8f80d
commit
c6f0284529
|
@ -4,8 +4,8 @@
|
|||
<h2>{{i18n "explorer.admins_only"}}</h2>
|
||||
{{else}}
|
||||
<div class="query-list">
|
||||
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" content=content castInteger="true" nameChanges="true"}}
|
||||
{{d-button action="showCreate" icon="plus" class="no-text"}}
|
||||
{{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-icon"}}
|
||||
{{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
|
||||
</div>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
{{/if}}
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
{{#if selectedItem.fake}}
|
||||
{{i18n "explorer.no_queries"}} <a {{action "showCreate"}}>{{i18n "explorer.no_queries_hook"}}</a>
|
||||
{{else}}
|
||||
|
|
|
@ -200,6 +200,16 @@
|
|||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.query-list {
|
||||
display: flex;
|
||||
.combo-box, button {
|
||||
margin-right: .5em;
|
||||
}
|
||||
li.none {
|
||||
color: $primary-medium;
|
||||
}
|
||||
}
|
||||
|
||||
.explorer-pad-bottom {
|
||||
margin-bottom: 200px;
|
||||
}
|
||||
|
|
|
@ -58,3 +58,4 @@ en:
|
|||
reset_params: "Reset"
|
||||
no_queries: "There are no queries. Why not "
|
||||
no_queries_hook: "create one?"
|
||||
menu_none: "Select a query"
|
||||
|
|
Loading…
Reference in New Issue