Procházet zdrojové kódy

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

Alex Antonenko před 10 roky
rodič
revize
c3d56f6c81

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