Add flag to remove management link from saved-object-finder if redundant.

Closes #7980
This commit is contained in:
markharwood 2016-08-11 16:52:23 +01:00
parent 3e2fee281a
commit 1b78afb269
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,9 @@ module.directive('savedObjectFinder', function ($location, $injector, kbnUrl, Pr
// optional make-url attr, sets the userMakeUrl in our scope
userMakeUrl: '=?makeUrl',
// optional on-choose attr, sets the userOnChoose in our scope
userOnChoose: '=?onChoose'
userOnChoose: '=?onChoose',
// optional useLocalManagement attr, removes link to management section
useLocalManagement: '=?useLocalManagement'
},
template: savedObjectFinderTemplate,
controllerAs: 'finder',

View file

@ -18,7 +18,7 @@
<div class="finder-hit-count col-md-2">
<span>{{finder.hitCount}} of {{finder.hitCount}}</span>
</div>
<div class="finder-manage-object col-md-2">
<div class="finder-manage-object col-md-2" ng-if="!useLocalManagement">
<a class="small" ng-click="finder.manageObjects(finder.properties.name)">
Manage {{finder.properties.nouns}}
</a>