mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Update view
This commit is contained in:
parent
e581d2a23c
commit
60152bae2b
2 changed files with 6 additions and 5 deletions
|
@ -39,6 +39,7 @@ define(function (require) {
|
|||
self.hits = [];
|
||||
|
||||
self.service = services[$scope.type];
|
||||
self.properties = self.service.loaderProperties;
|
||||
|
||||
filterResults();
|
||||
|
||||
|
@ -208,7 +209,7 @@ define(function (require) {
|
|||
};
|
||||
|
||||
self.hitCountNoun = function () {
|
||||
return ((self.hitCount === 1) ? self.service.loaderProperties.noun : self.service.loaderProperties.nouns).toLowerCase();
|
||||
return ((self.hitCount === 1) ? self.properties.noun : self.properties.nouns).toLowerCase();
|
||||
};
|
||||
|
||||
function selectTopHit() {
|
||||
|
@ -220,7 +221,7 @@ define(function (require) {
|
|||
|
||||
function filterResults() {
|
||||
if (!self.service) return;
|
||||
if (!self.service.loaderProperties) return;
|
||||
if (!self.properties) return;
|
||||
|
||||
// track the filter that we use for this search,
|
||||
// but ensure that we don't search for the same
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<form role="form">
|
||||
<div class="form-group finder-form">
|
||||
<div class="finder-form-options">
|
||||
<a class="small" ng-click="finder.manageObjects(finder.objectType.name)">manage {{finder.objectType.name}}</a>
|
||||
<a class="small" ng-click="finder.manageObjects(finder.properties.name)">manage {{finder.properties.nouns}}</a>
|
||||
</div>
|
||||
<div class="clearfix visible-xs-block"></div>
|
||||
<input
|
||||
input-focus
|
||||
ng-model="filter"
|
||||
ng-attr-placeholder="{{finder.objectType.noun}} Filter"
|
||||
ng-attr-placeholder="{{finder.properties.noun}} Filter"
|
||||
ng-keydown="finder.filterKeyDown($event)"
|
||||
class="form-control"
|
||||
name="filter"
|
||||
|
@ -40,7 +40,7 @@
|
|||
<li
|
||||
class="list-group-item list-group-no-results"
|
||||
ng-if="finder.hits.length === 0">
|
||||
<p ng-bind="'No matching ' + finder.objectType.nouns + ' found.'"></p>
|
||||
<p ng-bind="'No matching ' + finder.properties.nouns + ' found.'"></p>
|
||||
</li>
|
||||
</ul>
|
||||
</paginate>
|
Loading…
Add table
Add a link
Reference in a new issue