mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Ensure inventory_obj is on scope before checking it
This commit is contained in:
parent
049b3a2e87
commit
863d962ec2
@ -37,6 +37,8 @@ function SmartInventoryEdit($scope, $location,
|
||||
|
||||
$scope.parseType = 'yaml';
|
||||
|
||||
$scope.inventory_obj = inventoryData;
|
||||
$rootScope.breadcrumb.inventory_name = inventoryData.name;
|
||||
|
||||
ParseTypeChange({
|
||||
scope: $scope,
|
||||
@ -51,9 +53,6 @@ function SmartInventoryEdit($scope, $location,
|
||||
$scope.canEditOrg = canEditOrg;
|
||||
});
|
||||
|
||||
$scope.inventory_obj = inventoryData;
|
||||
$rootScope.breadcrumb.inventory_name = inventoryData.name;
|
||||
|
||||
$scope.smart_hosts = {
|
||||
host_filter: encodeURIComponent($scope.host_filter)
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user