Repository: ambari
Updated Branches:
  refs/heads/trunk 9d38b66d1 -> 649ca2b82


AMBARI-20278. Install Wizard > Select Services: Ambari warns me that "Ambari 
Infra is not selected" but it is selected. Additional patch (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/649ca2b8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/649ca2b8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/649ca2b8

Branch: refs/heads/trunk
Commit: 649ca2b825b235660c36015b51d136dca5d564a5
Parents: 9d38b66
Author: Alex Antonenko <[email protected]>
Authored: Mon Mar 6 18:20:20 2017 +0200
Committer: Alex Antonenko <[email protected]>
Committed: Mon Mar 6 20:58:05 2017 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step4_controller.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/649ca2b8/ambari-web/app/controllers/wizard/step4_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step4_controller.js 
b/ambari-web/app/controllers/wizard/step4_controller.js
index 02aeff8..3a13fbb 100644
--- a/ambari-web/app/controllers/wizard/step4_controller.js
+++ b/ambari-web/app/controllers/wizard/step4_controller.js
@@ -209,6 +209,11 @@ App.WizardStep4Controller = Em.ArrayController.extend({
     var dependent = this.findProperty('serviceName', dependentService);
     if (selected && selected.get('isSelected') && dependent && 
!dependent.get('isSelected')) {
       this.serviceValidation(callback, dependentService, checkId);
+    } else {
+      var unNeededError = this.get('errorStack').filterProperty('id', checkId);
+      if (unNeededError) {
+        this.get('errorStack').removeObject(unNeededError[0]);
+      }
     }
   },
 

Reply via email to