ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-20297. Popup "Save changed" appears when user switches config versions (onechiporenko)
Date Fri, 03 Mar 2017 14:47:30 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 8f5f3845c -> d51150d02


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/d51150d0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d51150d0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d51150d0

Branch: refs/heads/trunk
Commit: d51150d02aa527e887ccb91c5231d9911dd04699
Parents: 8f5f384
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Mar 3 15:21:36 2017 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Fri Mar 3 16:47:18 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/d51150d0/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 e0cd754..6ff5587 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');


Mime
View raw message