mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Ensure inventory_obj is on scope before checking it
This commit is contained in:
@@ -37,6 +37,8 @@ function SmartInventoryEdit($scope, $location,
|
|||||||
|
|
||||||
$scope.parseType = 'yaml';
|
$scope.parseType = 'yaml';
|
||||||
|
|
||||||
|
$scope.inventory_obj = inventoryData;
|
||||||
|
$rootScope.breadcrumb.inventory_name = inventoryData.name;
|
||||||
|
|
||||||
ParseTypeChange({
|
ParseTypeChange({
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
@@ -51,9 +53,6 @@ function SmartInventoryEdit($scope, $location,
|
|||||||
$scope.canEditOrg = canEditOrg;
|
$scope.canEditOrg = canEditOrg;
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.inventory_obj = inventoryData;
|
|
||||||
$rootScope.breadcrumb.inventory_name = inventoryData.name;
|
|
||||||
|
|
||||||
$scope.smart_hosts = {
|
$scope.smart_hosts = {
|
||||||
host_filter: encodeURIComponent($scope.host_filter)
|
host_filter: encodeURIComponent($scope.host_filter)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user