1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #3526 from jakemcdermott/fix-3524

use test callback from test form save hooks
This commit is contained in:
Michael Abashian 2019-05-01 08:57:29 -04:00 committed by GitHub
commit 6f309bd2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,10 @@ function ExternalTestModalController (strings) {
vm.strings = strings; vm.strings = strings;
vm.title = strings.get('externalTest.TITLE'); vm.title = strings.get('externalTest.TITLE');
vm.$onInit = () => {
vm.form.save = () => vm.onSubmit();
};
} }
ExternalTestModalController.$inject = [ ExternalTestModalController.$inject = [

View File

@ -6,7 +6,10 @@ function InputSourceLookupController (strings, wait) {
vm.strings = strings; vm.strings = strings;
vm.title = strings.get('inputSources.TITLE'); vm.title = strings.get('inputSources.TITLE');
vm.$onInit = () => wait('start'); vm.$onInit = () => {
wait('start');
vm.form.save = () => vm.onTest();
};
vm.onReady = () => { vm.onReady = () => {
vm.isReady = true; vm.isReady = true;