Only return the team and repo permissions when listing robots when we absolutely need them.

This commit is contained in:
Joseph Schorr 2015-05-08 16:43:07 -04:00
parent 561f2c7db0
commit f858caf6cd
4 changed files with 81 additions and 34 deletions

View file

@ -143,8 +143,12 @@ angular.module('quay').directive('robotsManager', function () {
if (!$scope.user && !$scope.organization) { return; }
if ($scope.loading || !$scope.isEnabled) { return; }
var params = {
'permissions': true
};
$scope.loading = true;
ApiService.getRobots($scope.organization).then(function(resp) {
ApiService.getRobots($scope.organization, null, params).then(function(resp) {
$scope.robots = resp.robots;
$scope.loading = false;