瀏覽代碼

AMBARI-3984. Config Groups: Background popup show up needs to be integrated when restarting components. (xiwang via yusaku)

Yusaku Sako 11 年之前
父節點
當前提交
bd37807ac9

+ 6 - 1
ambari-web/app/controllers/main/host/details.js

@@ -1045,7 +1045,12 @@ App.MainHostDetailsController = Em.Controller.extend({
           });
           });
         });
         });
         this.hide();
         this.hide();
-        App.router.get('backgroundOperationsController').showPopup();
+        // load data (if we need to show this background operations popup) from persist
+        App.router.get('applicationController').dataLoading().done(function (initValue) {
+          if (initValue) {
+            App.router.get('backgroundOperationsController').showPopup();
+          }
+        });
       }
       }
     });
     });
   },
   },

+ 6 - 1
ambari-web/app/controllers/main/service/info/configs.js

@@ -1792,7 +1792,12 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
           });
           });
         })
         })
         this.hide();
         this.hide();
-        App.router.get('backgroundOperationsController').showPopup();
+        // load data (if we need to show this background operations popup) from persist
+        App.router.get('applicationController').dataLoading().done(function (initValue) {
+          if (initValue) {
+            App.router.get('backgroundOperationsController').showPopup();
+          }
+        });
       },
       },
       onSecondary: function () {
       onSecondary: function () {
         this.hide();
         this.hide();