You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2014/09/23 18:03:00 UTC

[05/12] git commit: AMBARI-7440. Configs: after creating HCG, should land on page with that HCG (not default).(xiwang)

AMBARI-7440. Configs: after creating HCG, should land on page with that HCG (not default).(xiwang)


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

Branch: refs/heads/branch-alerts-dev
Commit: 4010ff4177176910db7fea1c6f2ca0a23e14cd06
Parents: 01a7606
Author: Xi Wang <xi...@apache.org>
Authored: Mon Sep 22 16:35:49 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Mon Sep 22 16:39:05 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/config_history_flow.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4010ff41/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 9984321..30d9e0f 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -445,6 +445,12 @@ App.ConfigHistoryFlowView = Em.View.extend({
       secondary: Em.I18n.t('common.cancel'),
       onSave: function () {
         self.get('controller').set('serviceConfigVersionNote', this.get('serviceConfigNote'));
+        var newVersionToBeCreated = App.ServiceConfigVersion.find().filterProperty('serviceName', self.get('serviceName')).get('length') + 1;
+        self.get('controller').set('preSelectedConfigVersion', Em.Object.create({
+          version: newVersionToBeCreated,
+          serviceName: self.get('displayedServiceVersion.serviceName'),
+          groupName: self.get('displayedServiceVersion.groupName')
+        }));
         self.get('controller').restartServicePopup();
         this.hide();
       },