ソースを参照

AMBARI-2483. Jobs page: clear filter button does not appear after coming back. (Oleg Nechiporenko via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1496716 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年 前
コミット
5a60d9322b
1 ファイル変更8 行追加0 行削除
  1. 8 0
      ambari-web/app/views/main/apps_view.js

+ 8 - 0
ambari-web/app/views/main/apps_view.js

@@ -267,6 +267,14 @@ App.MainAppsView = Em.View.extend({
    * data, and subsequently the popup dialog.
    * data, and subsequently the popup dialog.
    */
    */
   didInsertElement: function(){
   didInsertElement: function(){
+    var self = this;
+    Em.run.next(function() {
+      self.get('_childViews').forEach(function(childView) {
+        if(childView['showClearFilter']) {
+          childView.showClearFilter();
+        }
+      });
+    });
     App.router.get('mainAppsItemController').set('lastJobId', null);
     App.router.get('mainAppsItemController').set('lastJobId', null);
     this.onChangeViewType();
     this.onChangeViewType();
   },
   },