diff options
author | Zhe (Joe) Wang <zhewang@apache.org> | 2016-10-12 13:50:01 -0700 |
---|---|---|
committer | Zhe (Joe) Wang <zhewang@apache.org> | 2016-10-12 13:52:48 -0700 |
commit | 1f635ea24f9cbaac825ed8087572a5e8cb8907ae (patch) | |
tree | 6488674351615fe116de1459088be883482a979d | |
parent | 4550f94c78822883207e9408e63f8bd280f91c69 (diff) |
AMBARI-18566 Installer wizard-> Select Versions page: Selecting Red Hat Satellite option and clicking next button makes wizard stuck (zhewang)
-rw-r--r-- | ambari-web/app/controllers/installer.js | 3 | ||||
-rw-r--r-- | ambari-web/app/views/wizard/step1_view.js | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js index f8f70a0c68..5493b3a040 100644 --- a/ambari-web/app/controllers/installer.js +++ b/ambari-web/app/controllers/installer.js @@ -831,6 +831,9 @@ App.InstallerController = App.WizardController.extend({ return os.get('repositories.length'); }).reduce(Em.sum, 0)); var verifyBaseUrl = !wizardStep1Controller.get('skipValidationChecked') && !wizardStep1Controller.get('selectedStack.useRedhatSatellite'); + if (!verifyBaseUrl) { + dfd.resolve(); + } selectedStack.get('operatingSystems').forEach(function (os) { if (os.get('isSelected') && !os.get('isEmpty')) { os.get('repositories').forEach(function (repo) { diff --git a/ambari-web/app/views/wizard/step1_view.js b/ambari-web/app/views/wizard/step1_view.js index 2b80ad50f5..bfabc02548 100644 --- a/ambari-web/app/views/wizard/step1_view.js +++ b/ambari-web/app/views/wizard/step1_view.js @@ -76,7 +76,13 @@ App.WizardStep1View = Em.View.extend({ * * @type {bool} */ - showWarning: Em.computed.or('invalidFormatUrlExist', 'isNoOsChecked', 'isNoOsFilled'), + warningExist: Em.computed.or('invalidFormatUrlExist', 'isNoOsChecked', 'isNoOsFilled'), + + skipVerifyBaseUrl: Em.computed.or('controller.selectedStack.skipValidationChecked', 'controller.selectedStack.useRedhatSatellite'), + + verifyBaseUrl: Em.computed.not('skipVerifyBaseUrl'), + + showWarning: Em.computed.and('warningExist', 'verifyBaseUrl'), /** * Onclick handler for recheck repos urls. Used in Advanced Repository Options. |