Kaynağa Gözat

AMBARI-16193 Message with "null" shows up in showRestartRequiredPopup (zhewang)

Zhe (Joe) Wang 9 yıl önce
ebeveyn
işleme
f8aecbba12

+ 1 - 1
ambari-web/app/controllers/global/update_controller.js

@@ -531,7 +531,7 @@ App.UpdateController = Em.Controller.extend({
   },
   updateComponentConfig: function (callback) {
     var testUrl = '/data/services/host_component_stale_configs.json';
-    var componentConfigUrl = this.getUrl(testUrl, '/components?host_components/HostRoles/stale_configs=true&fields=host_components/HostRoles/service_name,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/host_name,host_components/HostRoles/stale_configs,host_components/HostRoles/desired_admin_state&minimal_response=true');
+    var componentConfigUrl = this.getUrl(testUrl, '/components?host_components/HostRoles/stale_configs=true&fields=host_components/HostRoles/display_name,host_components/HostRoles/service_name,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/host_name,host_components/HostRoles/stale_configs,host_components/HostRoles/desired_admin_state&minimal_response=true');
     App.HttpClient.get(componentConfigUrl, App.componentConfigMapper, {
       complete: callback
     });

+ 1 - 0
ambari-web/app/mappers/component_config_mapper.js

@@ -24,6 +24,7 @@ App.componentConfigMapper = App.QuickDataMapper.create({
     work_status: 'HostRoles.state',
     passive_state: 'HostRoles.maintenance_state',
     component_name: 'HostRoles.component_name',
+    display_name: 'HostRoles.display_name',
     host_name: 'HostRoles.host_name',
     $ha_status: '',
     $display_name_advanced: '',