ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-4043. In installer, default config-group ends up ordered last in the list of config-groups. (akovalenko)
Date Wed, 11 Dec 2013 15:52:44 GMT
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 <akovalenko@hortonworks.com>
Authored: Wed Dec 11 17:49:58 2013 +0200
Committer: Aleksandr Kovalenko <akovalenko@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'));
     }


Mime
View raw message