Provide default values for help text labels

This commit is contained in:
Marliana Lara 2017-08-04 17:41:45 -04:00
parent 605432dda2
commit 5d68b20554
2 changed files with 4 additions and 4 deletions

View File

@ -37,8 +37,8 @@ export default ['Rest', 'Wait',
callback: 'loadCredentialKindOptions'
});
$scope.inputs_help_text = options.actions.POST.inputs.help_text;
$scope.injectors_help_text = options.actions.POST.injectors.help_text;
$scope.inputs_help_text = _.get(options, 'actions.POST.inputs.help_text', "Specification for credential type inputs");
$scope.injectors_help_text = _.get(options, 'actions.POST.injectors.help_text', "Specification for credential type injector");
if (!options.actions.POST) {
$state.go("^");

View File

@ -36,8 +36,8 @@ export default ['Rest', 'Wait',
callback: 'choicesReadyCredentialTypes'
});
$scope.inputs_help_text = options.actions.POST.inputs.help_text;
$scope.injectors_help_text = options.actions.POST.injectors.help_text;
$scope.inputs_help_text = _.get(options, 'actions.POST.inputs.help_text', "Specification for credential type inputs");
$scope.injectors_help_text = _.get(options, 'actions.POST.injectors.help_text', "Specification for credential type injector");
});
}