mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Properly clear out prompt data when user manually changes a node's JT
This commit is contained in:
@@ -433,10 +433,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
|||||||
.then(function() {
|
.then(function() {
|
||||||
$scope.closeDialog();
|
$scope.closeDialog();
|
||||||
}).catch(({data, status}) => {
|
}).catch(({data, status}) => {
|
||||||
ProcessErrors($scope, data, status, null);
|
ProcessErrors($scope, data, status, null, {});
|
||||||
});
|
});
|
||||||
}).catch(({data, status}) => {
|
}).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) {
|
$scope.templateManuallySelected = function(selectedTemplate) {
|
||||||
|
|
||||||
|
if (promptWatcher) {
|
||||||
|
promptWatcher();
|
||||||
|
}
|
||||||
|
|
||||||
if (surveyQuestionWatcher) {
|
if (surveyQuestionWatcher) {
|
||||||
surveyQuestionWatcher();
|
surveyQuestionWatcher();
|
||||||
}
|
}
|
||||||
@@ -1034,6 +1038,8 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
|||||||
credentialsWatcher();
|
credentialsWatcher();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.promptData = null;
|
||||||
|
|
||||||
if (selectedTemplate.type === "job_template") {
|
if (selectedTemplate.type === "job_template") {
|
||||||
let jobTemplate = new JobTemplate();
|
let jobTemplate = new JobTemplate();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user