AMBARI-7510. Configs: clicking out of HCG compare should clear compare. Additional patch. (Max Shepel via akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2e3082af Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2e3082af Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2e3082af Branch: refs/heads/branch-alerts-dev Commit: 2e3082af1763b48d72a219e3bd97b27254631c55 Parents: e7ce4bb Author: Aleksandr Kovalenko <[email protected]> Authored: Fri Sep 26 18:27:30 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Fri Sep 26 18:31:19 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/views/common/configs/config_history_flow.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/2e3082af/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 e0e9581..92057ac 100644 --- a/ambari-web/app/views/common/configs/config_history_flow.js +++ b/ambari-web/app/views/common/configs/config_history_flow.js @@ -349,6 +349,9 @@ App.ConfigHistoryFlowView = Em.View.extend({ }); this.shiftFlowOnSwitch(versionIndex); this.get('controller').loadSelectedVersion(displayedVersion); + }, + clearCompareVersionBar: function () { + this.set('compareServiceVersion', null); }.observes('controller.selectedConfigGroup'), /** * revert config values to chosen version and apply reverted configs to server
