mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Send emit message sooner from prompt controller
This commit is contained in:
parent
eb22e09e4d
commit
c893e467c5
@ -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