mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Merge pull request #3526 from jakemcdermott/fix-3524
use test callback from test form save hooks
This commit is contained in:
@@ -5,6 +5,10 @@ function ExternalTestModalController (strings) {
|
||||
|
||||
vm.strings = strings;
|
||||
vm.title = strings.get('externalTest.TITLE');
|
||||
|
||||
vm.$onInit = () => {
|
||||
vm.form.save = () => vm.onSubmit();
|
||||
};
|
||||
}
|
||||
|
||||
ExternalTestModalController.$inject = [
|
||||
|
||||
@@ -6,7 +6,10 @@ function InputSourceLookupController (strings, wait) {
|
||||
vm.strings = strings;
|
||||
vm.title = strings.get('inputSources.TITLE');
|
||||
|
||||
vm.$onInit = () => wait('start');
|
||||
vm.$onInit = () => {
|
||||
wait('start');
|
||||
vm.form.save = () => vm.onTest();
|
||||
};
|
||||
|
||||
vm.onReady = () => {
|
||||
vm.isReady = true;
|
||||
|
||||
Reference in New Issue
Block a user