Add the team membership to the robots view

This commit is contained in:
Joseph Schorr 2015-04-01 13:56:30 -04:00
parent e6354571f6
commit fde9666647
6 changed files with 112 additions and 28 deletions

View file

@ -12,7 +12,7 @@ angular.module('quay').directive('robotsManager', function () {
'organization': '=organization',
'user': '=user'
},
controller: function($scope, $element, ApiService, $routeParams, CreateService) {
controller: function($scope, $element, ApiService, $routeParams, CreateService, Config) {
$scope.ROBOT_PATTERN = ROBOT_PATTERN;
// TODO(jschorr): move this to a service.
@ -26,6 +26,7 @@ angular.module('quay').directive('robotsManager', function () {
$scope.loading = false;
$scope.shownRobot = null;
$scope.showRobotCounter = 0;
$scope.Config = Config;
var loadRobotPermissions = function(info) {
var shortName = $scope.getShortenedName(info.name);