mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(playlist): add search result count
This commit is contained in:
parent
7c482064df
commit
aa83dc15e2
@ -39,17 +39,17 @@
|
|||||||
<div style="display: inline-block">
|
<div style="display: inline-block">
|
||||||
<div class="tight-form last">
|
<div class="tight-form last">
|
||||||
<ul class="tight-form-list">
|
<ul class="tight-form-list">
|
||||||
<li class="tight-form-item">
|
|
||||||
Search <tip>Search dashboards by their titles to add to the playlist</tip>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="tight-form-input input-xlarge last"
|
class="tight-form-input input-xlarge last"
|
||||||
ng-model="searchQuery"
|
ng-model="searchQuery"
|
||||||
placeholder="dashboard query"
|
placeholder="dashboard search term"
|
||||||
ng-trim="true"
|
ng-trim="true"
|
||||||
ng-change="search()">
|
ng-change="search()">
|
||||||
</li>
|
</li>
|
||||||
|
<li class="tight-form-item last" style="padding: 5px 4px">
|
||||||
|
<button ng-click="search()" class="btn btn-mini btn-inverse">Search</button>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="span5 pull-left">
|
<div class="span5 pull-left">
|
||||||
<h5>Search results</h5>
|
<h5>Search results ({{filteredDashboards.length}})</h5>
|
||||||
<table class="grafana-options-table">
|
<table class="grafana-options-table">
|
||||||
<tr ng-repeat="dashboard in filteredDashboards">
|
<tr ng-repeat="dashboard in filteredDashboards">
|
||||||
<td style="white-space: nowrap;">
|
<td style="white-space: nowrap;">
|
||||||
@ -72,12 +72,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="isSearchResultsEmpty() && !isSearchQueryEmpty()">
|
<tr ng-if="isSearchResultsEmpty() || isSearchQueryEmpty()">
|
||||||
<td colspan="2">
|
|
||||||
<i class="fa fa-warning"></i> No dashboards found
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr ng-if="isSearchQueryEmpty() && isPlaylistEmpty()">
|
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<i class="fa fa-warning"></i> Search results empty
|
<i class="fa fa-warning"></i> Search results empty
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user