Parcourir la source

AMABRI-9759. Alerts table: clear filters link doesn't work for alert groups. (xiwang via yusaku)

Yusaku Sako il y a 10 ans
Parent
commit
150a7118f1
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      ambari-web/app/views/main/alert_definitions_view.js

+ 3 - 0
ambari-web/app/views/main/alert_definitions_view.js

@@ -401,6 +401,8 @@ App.MainAlertDefinitionsView = App.TableView.extend({
       this.set('value', '');
     },
 
+    emptyValue: '',
+
     /**
      * Update list of <code>App.AlertGroup</code> used in the filter
      * @method updateContent
@@ -446,6 +448,7 @@ App.MainAlertDefinitionsView = App.TableView.extend({
         if (selectEntry) {
           selectEntry.set('selected', true);
         }
+        this.get('parentView').updateFilter(this.get('column'), value, 'alert_group');
       } else {
         this.set('value', '');
         this.get('parentView').updateFilter(this.get('column'), '', 'alert_group');