You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/07/26 15:02:28 UTC

[ambari] branch trunk updated: AMBARI-24359 Back and forth on All Configurations Page has multiple tabs marked as active

This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 044d6ab  AMBARI-24359 Back and forth on All Configurations Page has multiple tabs marked as active
044d6ab is described below

commit 044d6ab064ce12e63d0f54906c5dc6e1c7ffa114
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Thu Jul 26 16:14:20 2018 +0300

    AMBARI-24359 Back and forth on All Configurations Page has multiple tabs marked as active
---
 ambari-web/app/controllers/wizard/step7_controller.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js
index 6e80e7e..e93564d 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -1904,7 +1904,9 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, App.E
   },
 
   selectService: function (event) {
-    event.context.set('isActive', true);
+    this.get('stepConfigs').forEach((service) => {
+      service.set('isActive', service.get('serviceName') === event.context.serviceName);
+    });
     this.set('selectedService', event.context);
     var activeTabs = this.get('tabs').findProperty('isActive', true);
     if (activeTabs) {