mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
fixed adhoc verbosity default parameter in ui
This commit is contained in:
@@ -87,6 +87,8 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams,
|
|||||||
choicesReadyCount++;
|
choicesReadyCount++;
|
||||||
|
|
||||||
if (choicesReadyCount === 2) {
|
if (choicesReadyCount === 2) {
|
||||||
|
// this sets the default option as specified by the controller.
|
||||||
|
$scope.verbosity = $scope.adhoc_verbosity_options[$scope.verbosity_field.default];
|
||||||
$scope.$emit('lookUpInitialize');
|
$scope.$emit('lookUpInitialize');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ export default
|
|||||||
ngOptions: 'verbosity.label for verbosity in ' +
|
ngOptions: 'verbosity.label for verbosity in ' +
|
||||||
'adhoc_verbosity_options ' +
|
'adhoc_verbosity_options ' +
|
||||||
'track by verbosity.value',
|
'track by verbosity.value',
|
||||||
|
"default": 1,
|
||||||
editRequired: true,
|
editRequired: true,
|
||||||
awPopOver:'<p>These are the verbosity levels for standard ' +
|
awPopOver:'<p>These are the verbosity levels for standard ' +
|
||||||
'out of the command run that are supported.',
|
'out of the command run that are supported.',
|
||||||
|
|||||||
Reference in New Issue
Block a user