mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Merge pull request #2615 from kialam/fix/1444-fix-auto-close-modal
Fix prompt modal closing prematurely on JT list page
This commit is contained in:
commit
a04d3f817a
@ -181,12 +181,14 @@ function ListTemplatesController(
|
||||
};
|
||||
|
||||
function refreshTemplates() {
|
||||
Wait('start');
|
||||
let path = GetBasePath('unified_job_templates');
|
||||
qs.search(path, $state.params.template_search)
|
||||
.then(function(searchResponse) {
|
||||
vm.dataset = searchResponse.data;
|
||||
vm.templates = vm.dataset.results;
|
||||
});
|
||||
})
|
||||
.finally(() => Wait('stop'));
|
||||
}
|
||||
|
||||
function createErrorHandler(path, action) {
|
||||
|
||||
@ -20,6 +20,7 @@ export default [ 'Rest', 'GetBasePath', 'ProcessErrors', 'CredentialTypeModel',
|
||||
vm.actionButtonClicked = false;
|
||||
if(vm.promptData && vm.promptData.triggerModalOpen) {
|
||||
|
||||
scope.$emit('launchModalOpen', true);
|
||||
vm.promptDataClone = _.cloneDeep(vm.promptData);
|
||||
|
||||
vm.steps = {
|
||||
@ -193,8 +194,6 @@ export default [ 'Rest', 'GetBasePath', 'ProcessErrors', 'CredentialTypeModel',
|
||||
modal.onClose = () => {
|
||||
scope.$emit('launchModalOpen', false);
|
||||
};
|
||||
|
||||
scope.$emit('launchModalOpen', true);
|
||||
})
|
||||
.catch(({data, status}) => {
|
||||
ProcessErrors(scope, data, status, null, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user