mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 00:47:29 -02:30
AC-946: deferred host filter until after edit window is dismissed and only if save button clicked..
This commit is contained in:
@@ -599,10 +599,6 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
// Load the modal form
|
// Load the modal form
|
||||||
var scope = generator.inject(form, { mode: 'edit', modal: true, related: false, show_modal: false });
|
var scope = generator.inject(form, { mode: 'edit', modal: true, related: false, show_modal: false });
|
||||||
generator.reset();
|
generator.reset();
|
||||||
|
|
||||||
// Change the selected group
|
|
||||||
if (parent_scope.selected_tree_id !== tree_id)
|
|
||||||
parent_scope.showHosts(tree_id, group_id, false);
|
|
||||||
|
|
||||||
GetSourceTypeOptions({ scope: scope, variable: 'source_type_options' });
|
GetSourceTypeOptions({ scope: scope, variable: 'source_type_options' });
|
||||||
|
|
||||||
@@ -823,12 +819,20 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Clean up
|
//Clean up
|
||||||
scope.searchCleanup();
|
if (scope.searchCleanUp)
|
||||||
|
scope.searchCleanup();
|
||||||
scope.formModalActionDisabled = false;
|
scope.formModalActionDisabled = false;
|
||||||
scope.showGroupHelp = false; //get rid of the Hint
|
scope.showGroupHelp = false; //get rid of the Hint
|
||||||
Wait('stop');
|
|
||||||
$('#form-modal').modal('hide');
|
$('#form-modal').modal('hide');
|
||||||
}
|
|
||||||
|
// Change the selected group
|
||||||
|
if (parent_scope.selected_tree_id !== tree_id)
|
||||||
|
parent_scope.showHosts(tree_id, group_id, false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Wait('stop');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (scope.removeFormSaveSuccess) {
|
if (scope.removeFormSaveSuccess) {
|
||||||
|
|||||||
Reference in New Issue
Block a user