ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [6/8] ambari git commit: AMBARI-14737 Comparison box exists on the page after configs rerender. (ababiichuk)
Date Wed, 20 Jan 2016 17:04:04 GMT
AMBARI-14737 Comparison box exists on the page after configs rerender. (ababiichuk)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 5990fabf51683ff99043892c2e256c9cf6e4a1a6
Parents: 3f59c1f
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Wed Jan 20 11:24:25 2016 +0200
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Wed Jan 20 11:24:25 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/config_history_flow.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5990fabf/ambari-web/app/views/common/configs/config_history_flow.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/config_history_flow.js b/ambari-web/app/views/common/configs/config_history_flow.js
index 465daca..eea297f 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -350,8 +350,10 @@ App.ConfigHistoryFlowView = Em.View.extend({
     this.get('controller').loadSelectedVersion(displayedVersion);
   },
   clearCompareVersionBar: function () {
-    this.set('compareServiceVersion', null);
-  }.observes('controller.selectedConfigGroup'),
+    if (this.get('controller.isCompareMode') === false) {
+      this.set('compareServiceVersion', null);
+    }
+  }.observes('controller.isCompareMode'),
   /**
    * revert config values to chosen version and apply reverted configs to server
    */


Mime
View raw message