Browse Source

AMBARI-9813. 'Restart required' panel. Number of affected components differs from popup window count (alexantonenko)

Alex Antonenko 10 years ago
parent
commit
c3d56f6c81
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ambari-web/app/mappers/component_config_mapper.js

+ 2 - 1
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') &&