Ver código fonte

AMBARI-2779. The number of background operation count in the Background Ops popup does not update automatically in some cases. (Andrii Babiichuk via yusaku)

Yusaku Sako 12 anos atrás
pai
commit
064c7d9de5
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      ambari-web/app/utils/host_progress_popup.js

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

@@ -192,8 +192,7 @@ App.HostPopup = Em.Object.create({
    */
    */
   setBackgroundOperationHeader: function () {
   setBackgroundOperationHeader: function () {
     if (this.get("showServices")) {
     if (this.get("showServices")) {
-      var numRunning = this.get('categories').findProperty("value", 'pending').get("count");
-      numRunning += this.get('categories').findProperty("value", 'in_progress').get("count");
+      var numRunning =  App.router.get('backgroundOperationsController.allOperationsCount');
       this.set("popupHeaderName", numRunning + Em.I18n.t('hostPopup.header.postFix'));
       this.set("popupHeaderName", numRunning + Em.I18n.t('hostPopup.header.postFix'));
     } else {
     } else {
       this.set("popupHeaderName", this.get("serviceName"));
       this.set("popupHeaderName", this.get("serviceName"));