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
21
static/js/directives/ui/filter-box.js
Normal file
21
static/js/directives/ui/filter-box.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* An element which displays a right-aligned control bar with an <input> for filtering a collection.
|
||||
*/
|
||||
angular.module('quay').directive('filterBox', function () {
|
||||
var directiveDefinitionObject = {
|
||||
priority: 0,
|
||||
templateUrl: '/static/directives/filter-box.html',
|
||||
replace: false,
|
||||
transclude: true,
|
||||
restrict: 'C',
|
||||
scope: {
|
||||
'collection': '=collection',
|
||||
'filterModel': '=filterModel',
|
||||
'filterName': '@filterName'
|
||||
},
|
||||
controller: function($scope, $element) {
|
||||
|
||||
}
|
||||
};
|
||||
return directiveDefinitionObject;
|
||||
});
|
|
@ -118,7 +118,7 @@ angular.module('quay').directive('robotsManager', function () {
|
|||
if ($routeParams.showRobot) {
|
||||
var index = $scope.findRobotIndexByName($routeParams.showRobot);
|
||||
if (index >= 0) {
|
||||
$scope.showRobot($scope.robots[index]);
|
||||
$scope.robotFilter = $routeParams.showRobot;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue