Nicer handling of robots: sort the robots by name and add a filtering box
This commit is contained in:
parent
0be0aed17d
commit
c2e4cbe95b
3 changed files with 23 additions and 2 deletions
|
@ -73,6 +73,10 @@ angular.module('quay').directive('robotsManager', function () {
|
|||
return -1;
|
||||
};
|
||||
|
||||
$scope.getShortenedRobotName = function(info) {
|
||||
return $scope.getShortenedName(info.name);
|
||||
};
|
||||
|
||||
$scope.getShortenedName = function(name) {
|
||||
var plus = name.indexOf('+');
|
||||
return name.substr(plus + 1);
|
||||
|
|
Reference in a new issue