Repository: ambari Updated Branches: refs/heads/trunk c13c5828b -> 87586c670
AMBARI-11793. After upgrade to Ambari 2.1, YARN save settings not working (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d668f2cb Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d668f2cb Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d668f2cb Branch: refs/heads/trunk Commit: d668f2cb1dae5a69a10af4c339c8469fbdabeb52 Parents: c13c582 Author: Alex Antonenko <[email protected]> Authored: Mon Jun 8 22:12:56 2015 +0300 Committer: Alex Antonenko <[email protected]> Committed: Tue Jun 9 00:35:18 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/info/configs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d668f2cb/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 59e03ef..a21baa1 100644 --- a/ambari-web/app/controllers/main/service/info/configs.js +++ b/ambari-web/app/controllers/main/service/info/configs.js @@ -962,7 +962,9 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM componentConfig.get('configs').pushObject(serviceConfigProperty); serviceConfigProperty.validate(); }, this); - componentConfig.set('initConfigsLength', componentConfig.get('configs.length')); + Em.run.next(function () { + componentConfig.set('initConfigsLength', componentConfig.get('configs.length')); + }); }, /**
