You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/09/23 15:53:05 UTC

ambari git commit: AMBARI-13206. After Canceling on the "Make Current"-popup all config versions stay disabled (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 7ded8eb81 -> 5b79462a5


AMBARI-13206. After Canceling on the "Make Current"-popup all config versions stay disabled (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 5b79462a50f137223ed1bdf91e9fce9742c5cf40
Parents: 7ded8eb
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Sep 22 18:01:09 2015 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Wed Sep 23 16:52:53 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/5b79462a/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 ae0c985..26b6cd9 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -402,6 +402,14 @@ App.ConfigHistoryFlowView = Em.View.extend({
         serviceConfigVersion.set('serviceConfigNote', this.get('serviceConfigNote'));
         self.sendRevertCall(serviceConfigVersion);
         this.hide();
+      },
+      onSecondary: function () {
+        // force <code>serviceVersions</code> recalculating
+        self.propertyDidChange('controller.selectedConfigGroup.name');
+        this._super();
+      },
+      onThird: function () {
+        this.onSecondary();
       }
     });
   },