瀏覽代碼

AMBARI-5598 Security wizard: Host progress in the popup does not update. (atkach)

atkach 11 年之前
父節點
當前提交
5b58d16df3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/utils/host_progress_popup.js

+ 1 - 1
ambari-web/app/utils/host_progress_popup.js

@@ -354,7 +354,7 @@ App.HostPopup = Em.Object.create({
         existedHosts.forEach(function (host) {
           var newHostInfo = hostsMap[host.get('name')];
           //update only hosts with changed tasks or currently opened tasks of host
-          if (newHostInfo && (newHostInfo.isModified || this.get('currentHostName') === host.get('name'))) {
+          if (newHostInfo && (!this.get('isBackgroundOperations') || newHostInfo.isModified || this.get('currentHostName') === host.get('name'))) {
             var hostStatus = self.getStatus(newHostInfo.logTasks);
             var hostProgress = self.getProgress(newHostInfo.logTasks);
             host.set('status', App.format.taskStatus(hostStatus[0]));