fixed adhoc verbosity default parameter in ui

This commit is contained in:
John Mitchell 2015-04-20 16:51:44 -04:00
parent e1bf7ea749
commit 537ab3b317
2 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,8 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams,
choicesReadyCount++;
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');
}
});

View File

@ -98,6 +98,7 @@ export default
ngOptions: 'verbosity.label for verbosity in ' +
'adhoc_verbosity_options ' +
'track by verbosity.value',
"default": 1,
editRequired: true,
awPopOver:'<p>These are the verbosity levels for standard ' +
'out of the command run that are supported.',