You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2013/12/11 16:52:44 UTC

git commit: AMBARI-4043. In installer, default config-group ends up ordered last in the list of config-groups. (akovalenko)

Updated Branches:
  refs/heads/trunk 02ef1af60 -> 84dc32767


AMBARI-4043. In installer, default config-group ends up ordered last in the list of config-groups. (akovalenko)


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

Branch: refs/heads/trunk
Commit: 84dc327677d248c2137fa1afa8755cf92f58d0c8
Parents: 02ef1af
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Wed Dec 11 17:49:58 2013 +0200
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Wed Dec 11 17:49:58 2013 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step7_controller.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/84dc3276/ambari-web/app/controllers/wizard/step7_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js
index 38987f3..0cfa7e3 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -141,7 +141,9 @@ App.WizardStep7Controller = Em.Controller.extend({
 
   selectedServiceObserver: function () {
     if (App.supports.hostOverridesInstaller && this.get('selectedService') && (this.get('selectedService.serviceName') !== 'MISC')) {
-      var serviceGroups = this.get('selectedService.configGroups');
+      var serviceGroups = this.get('selectedService.configGroups').sort(function (a, b) {
+        return a.isDefault || b.isDefault ? 1 : 0;
+      });
       this.set('configGroups', serviceGroups);
       this.set('selectedConfigGroup', serviceGroups.findProperty('isDefault'));
     }