Repository: ambari Updated Branches: refs/heads/branch-1.7.0 1ba3e06c0 -> 5383c9fca
AMBARI-7726. Incorrect behavior of creating 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/5383c9fc Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5383c9fc Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5383c9fc Branch: refs/heads/branch-1.7.0 Commit: 5383c9fca4d7afce2ad4ade8b87b4d9e7ffa51f6 Parents: 1ba3e06 Author: Aleksandr Kovalenko <[email protected]> Authored: Fri Oct 10 18:02:19 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Fri Oct 10 18:02:19 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/info/configs.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5383c9fc/ambari-web/app/controllers/main/service/info/configs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js index 2210920..99e301a 100644 --- a/ambari-web/app/controllers/main/service/info/configs.js +++ b/ambari-web/app/controllers/main/service/info/configs.js @@ -2671,12 +2671,15 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM } else { controller.set('selectedService.configGroups', managedConfigGroups); } - //check whether selectedConfigGroup was selected + + var selectEventObject = {}; + //check whether selectedConfigGroup exists if (selectedConfigGroup && controller.get('configGroups').someProperty('name', selectedConfigGroup.get('name'))) { - controller.set('selectedConfigGroup', selectedConfigGroup); + selectEventObject.context = selectedConfigGroup; } else { - controller.set('selectedConfigGroup', managedConfigGroups.findProperty('isDefault', true)); + selectEventObject.context = managedConfigGroups.findProperty('isDefault', true); } + controller.selectConfigGroup(selectEventObject); }, updateButtons: function () {
