1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

fix of the teams list console errors

This commit is contained in:
John Mitchell 2015-02-18 16:14:30 -05:00
parent a0ffd50207
commit 9698b79f3f

View File

@ -202,6 +202,7 @@ export function TeamsEdit($scope, $rootScope, $compile, $location, $log, $routeP
}
$scope.teamLoadedRemove = $scope.$on('teamLoaded', function () {
CheckAccess({ scope: $scope });
if ($scope.organization_url) {
Rest.setUrl($scope.organization_url);
Rest.get()
.success(function (data) {
@ -216,6 +217,11 @@ export function TeamsEdit($scope, $rootScope, $compile, $location, $log, $routeP
for (var set in relatedSets) {
$scope.search(relatedSets[set].iterator);
}
} else {
$scope.organization_name = "";
master.organization_name = "";
Wait('stop');
}
});
// Retrieve detail record and prepopulate the form