add workflow inventory prompt to scheduler

This commit is contained in:
Jake McDermott 2018-11-11 02:37:17 -05:00
parent 4ea7511ae8
commit d65687f14a
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
2 changed files with 31 additions and 2 deletions

View File

@ -239,7 +239,19 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
});
};
if(!launchConf.survey_enabled) {
if (!launchConf.survey_enabled &&
!launchConf.ask_inventory_on_launch &&
!launchConf.ask_credential_on_launch &&
!launchConf.ask_verbosity_on_launch &&
!launchConf.ask_job_type_on_launch &&
!launchConf.ask_limit_on_launch &&
!launchConf.ask_tags_on_launch &&
!launchConf.ask_skip_tags_on_launch &&
!launchConf.ask_diff_mode_on_launch &&
!launchConf.survey_enabled &&
!launchConf.credential_needed_to_start &&
!launchConf.inventory_needed_to_start &&
launchConf.variables_needed_to_start.length === 0) {
$scope.showPromptButton = false;
} else {
$scope.showPromptButton = true;
@ -259,6 +271,7 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
launchConf: responses[1].data,
launchOptions: responses[0].data,
surveyQuestions: processed.surveyQuestions,
templateType: ParentObject.type,
template: ParentObject.id,
prompts: PromptService.processPromptValues({
launchConf: responses[1].data,
@ -283,6 +296,7 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
$scope.promptData = {
launchConf: responses[1].data,
launchOptions: responses[0].data,
templateType: ParentObject.type,
template: ParentObject.id,
prompts: PromptService.processPromptValues({
launchConf: responses[1].data,

View File

@ -424,7 +424,20 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
currentValues: scheduleResolve
});
if(!launchConf.survey_enabled) {
if (!launchConf.survey_enabled &&
!launchConf.ask_inventory_on_launch &&
!launchConf.ask_credential_on_launch &&
!launchConf.ask_verbosity_on_launch &&
!launchConf.ask_job_type_on_launch &&
!launchConf.ask_limit_on_launch &&
!launchConf.ask_tags_on_launch &&
!launchConf.ask_skip_tags_on_launch &&
!launchConf.ask_diff_mode_on_launch &&
!launchConf.survey_enabled &&
!launchConf.credential_needed_to_start &&
!launchConf.inventory_needed_to_start &&
launchConf.passwords_needed_to_start.length === 0 &&
launchConf.variables_needed_to_start.length === 0) {
$scope.showPromptButton = false;
} else {
$scope.showPromptButton = true;
@ -446,6 +459,7 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
launchOptions: launchOptions,
prompts: prompts,
surveyQuestions: surveyQuestionRes.data.spec,
templateType: ParentObject.type,
template: ParentObject.id
};
@ -467,6 +481,7 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
launchConf: launchConf,
launchOptions: launchOptions,
prompts: prompts,
templateType: ParentObject.type,
template: ParentObject.id
};
watchForPromptChanges();