Fix bug in robots manager around adding a new robot and make the robots listing using bind once to reduce the number of listeners

This commit is contained in:
Joseph Schorr 2015-04-23 13:56:25 -04:00
parent 518419097f
commit b02b98def3
2 changed files with 21 additions and 16 deletions

View file

@ -86,6 +86,8 @@ angular.module('quay').directive('robotsManager', function () {
CreateService.createRobotAccount(ApiService, !!$scope.organization, $scope.organization ? $scope.organization.name : '', name,
function(created) {
created.teams = [];
created.repositories = [];
$scope.robots.push(created);
});
};