You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rz...@apache.org on 2015/09/09 03:09:10 UTC

ambari git commit: AMBARI-12968. Hosts page 'clear filters' link does not work (rzang)

Repository: ambari
Updated Branches:
  refs/heads/trunk dca7e5d03 -> 27803b592


AMBARI-12968. Hosts page 'clear filters' link does not work <fix2> (rzang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/27803b59
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/27803b59
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/27803b59

Branch: refs/heads/trunk
Commit: 27803b592a53253e6e65cea63d363c8eb4f018ef
Parents: dca7e5d
Author: Richard Zang <rz...@apache.org>
Authored: Tue Sep 8 18:07:12 2015 -0700
Committer: Richard Zang <rz...@apache.org>
Committed: Tue Sep 8 18:07:12 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/host.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/27803b59/ambari-web/app/views/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host.js b/ambari-web/app/views/main/host.js
index 7ff4c69..82bda20 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -826,7 +826,13 @@ App.MainHostView = App.TableView.extend(App.TableServerViewMixin, {
       this.set('value', category.get('healthStatus'));
       this.get('parentView').resetFilterByColumns([0, 7, 8, 9]);
       if (category.get('isHealthStatus')) {
-        this.get('parentView').updateFilter(0, category.get('healthStatus'), 'string');
+        var status = category.get('healthStatus');
+        if (!status) {
+          // only "All" option has no specific status, just refresh
+          this.get('parentView').refresh();
+        } else {
+          this.get('parentView').updateFilter(0, status, 'string');
+        }
       } else {
         this.get('parentView').updateFilter(category.get('column'), category.get('filterValue'), category.get('type'));
       }