Nicer handling of robots: sort the robots by name and add a filtering box

This commit is contained in:
Joseph Schorr 2015-04-09 15:03:07 -04:00
parent 0be0aed17d
commit c2e4cbe95b
3 changed files with 23 additions and 2 deletions

View file

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