Make robot accounts filter rather than display the dialog when "showRobot" is passed to the manager
This commit is contained in:
parent
ecf1135dcd
commit
72abd80f08
5 changed files with 47 additions and 4 deletions
6
static/directives/filter-box.html
Normal file
6
static/directives/filter-box.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<div class="filter-box-element" ng-show="collection.length">
|
||||
<span class="filter-message" ng-if="filterModel">
|
||||
Showing {{ (collection|filter:filterModel).length }} of {{ collection.length }} {{ filterName }}
|
||||
</span>
|
||||
<input class="form-control" type="text" ng-model="filterModel" placeholder="Filter {{ filterName }}...">
|
||||
</div>
|
|
@ -19,9 +19,8 @@
|
|||
be shared, such as deployment systems.
|
||||
</div>
|
||||
|
||||
<span class="co-filter-box" ng-show="robots.length">
|
||||
<input class="form-control" type="text" ng-model="robotFilter" placeholder="Filter Robot Accounts...">
|
||||
</span>
|
||||
<div class="filter-box" collection="robots" filter-model="robotFilter"
|
||||
filter-name="Robot Accounts"></div>
|
||||
|
||||
<div class="empty" ng-if="!robots.length">
|
||||
<div class="empty-primary-msg">No robot accounts defined.</div>
|
||||
|
|
Reference in a new issue