瀏覽代碼

AMBARI-3769 Visible HbaseMaster in components list after it was removed. (atkach)

atkach 11 年之前
父節點
當前提交
e3de66656a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ambari-web/app/mappers/hosts_mapper.js

+ 3 - 0
ambari-web/app/mappers/hosts_mapper.js

@@ -173,6 +173,9 @@ App.hostsMapper = App.QuickDataMapper.create({
       if (JSON.stringify(current.disk_info) !== JSON.stringify(previous.disk_info)) {
         result.disk_info = current.disk_info;
       }
+      if (JSON.stringify(current.host_components) !== JSON.stringify(previous.host_components)) {
+        result.host_components = current.host_components;
+      }
       result.last_heart_beat_time = current.last_heart_beat_time;
       return result;
     }