mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
add error handling of admin of org call
This commit is contained in:
parent
6153016937
commit
83a656653d
@ -182,6 +182,8 @@ export function CredentialsAdd($scope, $rootScope, $compile, $location, $log,
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
$scope.canShareCredential = (data.count) ? true : false;
|
||||
}).error(function (data, status) {
|
||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to find if users is admin of org' + status });
|
||||
});
|
||||
}
|
||||
|
||||
@ -342,6 +344,8 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log,
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
$scope.canShareCredential = (data.count) ? true : false;
|
||||
}).error(function (data, status) {
|
||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to find if users is admin of org' + status });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user