Make robot accounts filter rather than display the dialog when "showRobot" is passed to the manager

This commit is contained in:
Joseph Schorr 2015-04-20 13:11:21 -04:00
parent ecf1135dcd
commit 72abd80f08
5 changed files with 47 additions and 4 deletions

View 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;
});

View file

@ -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;
}
}
});