Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 fffc69258 -> d485a0a19


AMBARI-20297. Popup "Save changed" appears when user switches config versions 
(onechiporenko)


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

Branch: refs/heads/branch-2.5
Commit: d485a0a191a4a7409e2174e363617a0cd47a7e97
Parents: fffc692
Author: Oleg Nechiporenko <[email protected]>
Authored: Fri Mar 3 15:21:36 2017 +0200
Committer: Oleg Nechiporenko <[email protected]>
Committed: Fri Mar 3 16:47:47 2017 +0200

----------------------------------------------------------------------
 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/d485a0a1/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 0cd6b7f..929f082 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -274,6 +274,9 @@ App.ConfigHistoryFlowView = Em.View.extend({
     var type = event.contexts[1],
         controller = this.get('controller'),
         self = this;
+    if (!controller.get('versionLoaded')) {
+      return;
+    }
     // action from right popup of pull down version list will have context[0] 
== undefined, and use 'hoveredServiceVersion'.
     // refer to AMBARI-19871 for more info
     var configVersion = event.contexts[0] || this.get('hoveredServiceVersion');

Reply via email to