mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
skip missing inventory prompt value check when selecting workflow node
This commit is contained in:
committed by
mabashian
parent
7b4521f980
commit
65ec1d18ad
@@ -91,12 +91,19 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService
|
|||||||
];
|
];
|
||||||
|
|
||||||
promptWatcher = $scope.$watchGroup(promptDataToWatch, () => {
|
promptWatcher = $scope.$watchGroup(promptDataToWatch, () => {
|
||||||
|
const templateType = _.get($scope, 'promptData.templateType');
|
||||||
let missingPromptValue = false;
|
let missingPromptValue = false;
|
||||||
|
|
||||||
if ($scope.missingSurveyValue) {
|
if ($scope.missingSurveyValue) {
|
||||||
missingPromptValue = true;
|
missingPromptValue = true;
|
||||||
} else if (!$scope.promptData.prompts.inventory.value || !$scope.promptData.prompts.inventory.value.id) {
|
|
||||||
missingPromptValue = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (templateType !== "workflow_job_template") {
|
||||||
|
if (!$scope.promptData.prompts.inventory.value || !$scope.promptData.prompts.inventory.value.id) {
|
||||||
|
missingPromptValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.promptModalMissingReqFields = missingPromptValue;
|
$scope.promptModalMissingReqFields = missingPromptValue;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user