浏览代码

AMBARI-6439 Filter state does not clear in Background Operation popup and causes a lot of confusion. (ababiichuk)

aBabiichuk 11 年之前
父节点
当前提交
b5e1256fae
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ambari-web/app/utils/host_progress_popup.js

+ 4 - 0
ambari-web/app/utils/host_progress_popup.js

@@ -734,12 +734,16 @@ App.HostPopup = Em.Object.create({
             levelInfo.set('name', levelName);
             if (levelName === 'HOSTS_LIST') {
               this.set('isLevelLoaded', dataSourceController.requestMostRecent());
+              this.set('hostCategory', this.get('categories').findProperty('value','all'));
             } else if (levelName === 'TASK_DETAILS') {
               dataSourceController.requestMostRecent();
               this.set('isLevelLoaded', false);
             } else if (levelName === 'REQUESTS_LIST') {
+              this.set('serviceCategory', this.get('categories').findProperty('value','all'));
               this.get('controller.hosts').clear();
               dataSourceController.requestMostRecent();
+            } else {
+              this.set('taskCategory', this.get('categories').findProperty('value','all'));
             }
           } else if (securityControllers.contains(dataSourceController.get('name'))) {
             if (levelName === 'TASK_DETAILS') {