You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/03/03 18:04:06 UTC
[19/28] ambari git commit: AMBARI-20297. Popup "Save changed" appears
when user switches config versions (onechiporenko)
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/branch-feature-AMBARI-12556
Commit: d51150d02aa527e887ccb91c5231d9911dd04699
Parents: 8f5f384
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Mar 3 15:21:36 2017 +0200
Committer: Oleg Nechiporenko <on...@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');