mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Merge pull request #80 from ansible/teams_error
fix of the teams list console errors
This commit is contained in:
@@ -202,19 +202,25 @@ export function TeamsEdit($scope, $rootScope, $compile, $location, $log, $routeP
|
|||||||
}
|
}
|
||||||
$scope.teamLoadedRemove = $scope.$on('teamLoaded', function () {
|
$scope.teamLoadedRemove = $scope.$on('teamLoaded', function () {
|
||||||
CheckAccess({ scope: $scope });
|
CheckAccess({ scope: $scope });
|
||||||
Rest.setUrl($scope.organization_url);
|
if ($scope.organization_url) {
|
||||||
Rest.get()
|
Rest.setUrl($scope.organization_url);
|
||||||
.success(function (data) {
|
Rest.get()
|
||||||
$scope.organization_name = data.name;
|
.success(function (data) {
|
||||||
master.organization_name = data.name;
|
$scope.organization_name = data.name;
|
||||||
Wait('stop');
|
master.organization_name = data.name;
|
||||||
})
|
Wait('stop');
|
||||||
.error(function (data, status) {
|
})
|
||||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to retrieve organization: ' +
|
.error(function (data, status) {
|
||||||
$scope.orgnization_url + '. GET status: ' + status });
|
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to retrieve organization: ' +
|
||||||
});
|
$scope.orgnization_url + '. GET status: ' + status });
|
||||||
for (var set in relatedSets) {
|
});
|
||||||
$scope.search(relatedSets[set].iterator);
|
for (var set in relatedSets) {
|
||||||
|
$scope.search(relatedSets[set].iterator);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$scope.organization_name = "";
|
||||||
|
master.organization_name = "";
|
||||||
|
Wait('stop');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user