ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject ambari git commit: AMBARI-19871 - Config version switch/compare/revert doesn't work <fix1> (rzang)
Date Wed, 08 Feb 2017 18:51:16 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 f86b1d01c -> fc9e267a5


AMBARI-19871 - Config version switch/compare/revert doesn't work <fix1> (rzang)


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

Branch: refs/heads/branch-2.5
Commit: fc9e267a505ef8d4ebf65dbf6ea0796283eb8cdf
Parents: f86b1d0
Author: Richard Zang <rzang@apache.org>
Authored: Wed Feb 8 10:41:59 2017 -0800
Committer: Richard Zang <rzang@apache.org>
Committed: Wed Feb 8 10:49:21 2017 -0800

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/config_history_flow.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fc9e267a/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 4f3ba97..bdb9842 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -45,7 +45,11 @@ App.ConfigHistoryFlowView = Em.View.extend({
     COMPARE: 'compare',
     REVERT: 'revert'
   },
-  
+
+  /**
+   * serviceVersion object that is currently being hovered in the dropdown menu
+   */
+  hoveredServiceVersion: null,
   /**
    * flag to check if sub-menu popup is currently being hovered
    */
@@ -583,7 +587,9 @@ App.ConfigHistoryDropdownRowView = Em.View.extend({
       var $el = $('#config_version_popup');
       var $currentTarget = $(event.currentTarget);
       var parentView = view.get('parentView');
+      parentView.set('hoveredServiceVersion', null);
       if (!serviceVersion.get("isDisplayed"))  {
+        parentView.set('hoveredServiceVersion', serviceVersion);
         parentView.set('isHovered', true);
         var elHeight = $el.outerHeight(),
           pagePosition = window.innerHeight + window.pageYOffset,


Mime
View raw message