Repository: ambari Updated Branches: refs/heads/trunk 060b0a6da -> 5c8aa25a4
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/5c8aa25a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5c8aa25a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5c8aa25a Branch: refs/heads/trunk Commit: 5c8aa25a48d8b89cc20faac3601ce9c6521b33c1 Parents: 060b0a6 Author: Richard Zang <[email protected]> Authored: Wed Feb 8 10:41:59 2017 -0800 Committer: Richard Zang <[email protected]> Committed: Wed Feb 8 10:41:59 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/5c8aa25a/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 687d398..59164d7 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,
