Repository: ambari Updated Branches: refs/heads/trunk 0b855e9a0 -> 859416425
AMBARI-9813. 'Restart required' panel. Number of affected components differs from popup window count (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c3d56f6c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c3d56f6c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c3d56f6c Branch: refs/heads/trunk Commit: c3d56f6c816d6a5a6a91416c52c77a71d87152d0 Parents: 0b855e9 Author: Alex Antonenko <[email protected]> Authored: Thu Feb 26 16:35:30 2015 +0200 Committer: Alex Antonenko <[email protected]> Committed: Thu Feb 26 17:37:23 2015 +0200 ---------------------------------------------------------------------- ambari-web/app/mappers/component_config_mapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c3d56f6c/ambari-web/app/mappers/component_config_mapper.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mappers/component_config_mapper.js b/ambari-web/app/mappers/component_config_mapper.js index f9f5926..c1f6429 100644 --- a/ambari-web/app/mappers/component_config_mapper.js +++ b/ambari-web/app/mappers/component_config_mapper.js @@ -52,7 +52,8 @@ App.componentConfigMapper = App.QuickDataMapper.create({ }); this.get('model').find().forEach(function (hostComponent) { var hostComponentJson = hostComponentJsonMap[hostComponent.get('id')]; - if (!hostComponentJson && !hostComponent.get('isMaster')) { + if (!hostComponentJson && + !App.StackServiceComponent.find().findProperty('componentName', hostComponent.get('componentName')).get('isMaster')) { hostComponent.set('staleConfigs', false); } if (hostComponentJson!=null && hostComponent.get('staleConfigs') &&
