[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 Authored: Fri Mar 3 15:21:36 2017 +0200 Committer: Oleg Nechiporenko 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');
ambari git commit: AMBARI-20297. Popup "Save changed" appears when user switches config versions (onechiporenko)
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 Authored: Fri Mar 3 15:21:36 2017 +0200 Committer: Oleg Nechiporenko 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');
ambari git commit: AMBARI-20297. Popup "Save changed" appears when user switches config versions (onechiporenko)
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 Authored: Fri Mar 3 15:21:36 2017 +0200 Committer: Oleg Nechiporenko 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');