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:
parent
518419097f
commit
b02b98def3
2 changed files with 21 additions and 16 deletions
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue