Repository: ambari Updated Branches: refs/heads/trunk 8f8778bff -> f38162a8b
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/f38162a8 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f38162a8 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f38162a8 Branch: refs/heads/trunk Commit: f38162a8b4a6873c1a3001e8c00c2eb6db1c74e2 Parents: 8f8778b Author: Aleksandr Kovalenko <[email protected]> Authored: Fri Oct 10 18:15:26 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Fri Oct 10 18:15:26 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/f38162a8/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 386ec96..f7a7b38 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 () {
