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

fixed reset from deleting the provided host pattern from the inventory page.

This commit is contained in:
John Mitchell 2015-04-06 11:51:07 -04:00
parent 47e045e9fe
commit b618d9223f

View File

@ -60,6 +60,7 @@ export function AdhocForm($scope, $rootScope, $location, $routeParams,
// pre-populate hostPatterns from the inventory page and // pre-populate hostPatterns from the inventory page and
// delete the value off of rootScope // delete the value off of rootScope
$scope.limit = $rootScope.hostPatterns || "all"; $scope.limit = $rootScope.hostPatterns || "all";
$scope.providedHostPatterns = $scope.limit;
delete $rootScope.hostPatterns; delete $rootScope.hostPatterns;
if ($scope.removeChoicesReady) { if ($scope.removeChoicesReady) {
@ -159,6 +160,7 @@ export function AdhocForm($scope, $rootScope, $location, $routeParams,
for (var fld in master) { for (var fld in master) {
$scope[fld] = master[fld]; $scope[fld] = master[fld];
} }
$scope.limit = $scope.providedHostPatterns;
KindChange({ scope: $scope, form: form, reset: false }); KindChange({ scope: $scope, form: form, reset: false });
OwnerChange({ scope: $scope }); OwnerChange({ scope: $scope });
LoginMethodChange({ scope: $scope }); LoginMethodChange({ scope: $scope });