Bug fixes:
- Report proper errors when trying to change permissions - Turn off the auto-caps of the team names - Fix the is_org_member checks everywhere - Fix resetting of roles if the change was not successful
This commit is contained in:
parent
9f1bf1499d
commit
be0fba276f
6 changed files with 46 additions and 23 deletions
|
@ -582,12 +582,11 @@ quayApp.directive('roleGroup', function () {
|
|||
},
|
||||
controller: function($scope, $element) {
|
||||
$scope.setRole = function(role) {
|
||||
$scope.currentRole = role;
|
||||
if ($scope.roleChanged) {
|
||||
if ($scope.changeParams) {
|
||||
$scope.changeParams();
|
||||
}
|
||||
if ($scope.currentRole == role) { return; }
|
||||
if ($scope.roleChanged) {
|
||||
$scope.roleChanged({'role': role});
|
||||
} else {
|
||||
$scope.currentRole = role;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue