mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Properly clear out prompt data when user manually changes a node's JT
This commit is contained in:
parent
53b4a4e2fc
commit
f7f1c06d80
@ -433,10 +433,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
||||
.then(function() {
|
||||
$scope.closeDialog();
|
||||
}).catch(({data, status}) => {
|
||||
ProcessErrors($scope, data, status, null);
|
||||
ProcessErrors($scope, data, status, null, {});
|
||||
});
|
||||
}).catch(({data, status}) => {
|
||||
ProcessErrors($scope, data, status, null);
|
||||
ProcessErrors($scope, data, status, null, {});
|
||||
});
|
||||
};
|
||||
|
||||
@ -1026,6 +1026,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
||||
|
||||
$scope.templateManuallySelected = function(selectedTemplate) {
|
||||
|
||||
if (promptWatcher) {
|
||||
promptWatcher();
|
||||
}
|
||||
|
||||
if (surveyQuestionWatcher) {
|
||||
surveyQuestionWatcher();
|
||||
}
|
||||
@ -1034,6 +1038,8 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
||||
credentialsWatcher();
|
||||
}
|
||||
|
||||
$scope.promptData = null;
|
||||
|
||||
if (selectedTemplate.type === "job_template") {
|
||||
let jobTemplate = new JobTemplate();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user