ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-8261 Hosts tab shows 0 alert badge even if there isn't any alerts. (atkach)
Date Mon, 10 Nov 2014 19:54:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f8106748a -> b3cba9439


AMBARI-8261 Hosts tab shows 0 alert badge even if there isn't any alerts. (atkach)


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

Branch: refs/heads/trunk
Commit: b3cba943938b04cf6b007510cf986357e1a7d946
Parents: f810674
Author: Andrii Tkach <atkach@hortonworks.com>
Authored: Mon Nov 10 21:54:42 2014 +0200
Committer: Andrii Tkach <atkach@hortonworks.com>
Committed: Mon Nov 10 21:54:42 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/views/main/menu.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b3cba943/ambari-web/app/views/main/menu.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/menu.js b/ambari-web/app/views/main/menu.js
index 837844b..5ab6375 100644
--- a/ambari-web/app/views/main/menu.js
+++ b/ambari-web/app/views/main/menu.js
@@ -92,8 +92,8 @@ App.MainMenuView = Em.CollectionView.extend({
     }.property('App.router.mainHostController.hostsCountMap'),
 
     hasAlertsLabel: function () {
-      return this.get('content.hasAlertsLabel');
-    }.property('content.hasAlertsLabel'),
+      return this.get('content.hasAlertsLabel') && this.get('alertsCount') > 0;
+    }.property('content.hasAlertsLabel', 'alertsCount'),
 
     templateName: require('templates/main/menu_item'),
 


Mime
View raw message