parent
b5efc57655
commit
391d70d9ec
18 changed files with 496 additions and 224 deletions
|
@ -196,6 +196,20 @@ angular.module('quay').directive('teamsManager', function () {
|
|||
$scope.removeMemberInfo = $.extend({}, memberInfo);
|
||||
};
|
||||
|
||||
$scope.setRepoPermissions = function(teamName) {
|
||||
$scope.setRepoPermissionsInfo = {
|
||||
'namespace': $scope.organization.name,
|
||||
'entityName': teamName,
|
||||
'entityKind': 'team',
|
||||
'entityIcon': 'fa-group'
|
||||
};
|
||||
};
|
||||
|
||||
$scope.handlePermissionsSet = function(info, repositories) {
|
||||
var team = $scope.organization.teams[info.entityName];
|
||||
team['repo_count'] = repositories.length;
|
||||
};
|
||||
|
||||
$scope.$watch('organization', setTeamsState);
|
||||
$scope.$watch('isEnabled', setTeamsState);
|
||||
|
||||
|
|
Reference in a new issue