Browse Source

AMBARI-2715. BG operations window behavior is unreliable. (Antonenko Alexander via yusaku)

Yusaku Sako 12 năm trước cách đây
mục cha
commit
90fee36249
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      ambari-web/app/utils/host_progress_popup.js

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

@@ -474,7 +474,7 @@ App.HostPopup = Em.Object.create({
       }),
       classNames: ['sixty-percent-width-modal'],
       autoHeight: false,
-      onPrimary: function () {
+      closeModelPopup: function () {
         this.set('isOpen', false);
         if(showServices){
           $(this.get('element')).detach();
@@ -482,6 +482,12 @@ App.HostPopup = Em.Object.create({
           this.hide();
         }
       },
+      onPrimary: function () {
+        this.closeModelPopup();
+      },
+      onClose: function () {
+        this.closeModelPopup();
+      },
       secondary: null,
 
       bodyClass: Ember.View.extend({
@@ -534,6 +540,7 @@ App.HostPopup = Em.Object.create({
             this.set('isTaskListHidden', true);
             this.set('isHostListHidden', true);
             this.set('isServiceListHidden', false);
+            this.get("controller").setBackgroundOperationHeader();
             this.setOnStart();
           }
         }.observes('parentView.isOpen'),