ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject ambari git commit: AMBARI-10666. gateways 0/0 should not be red. (akovalenko)
Date Wed, 22 Apr 2015 16:53:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 2d683330e -> 043ce9da5


AMBARI-10666. gateways 0/0 should not be red. (akovalenko)


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

Branch: refs/heads/trunk
Commit: 043ce9da58d4678c009a225a59845569a3e5ca2e
Parents: 2d68333
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Wed Apr 22 19:26:54 2015 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Wed Apr 22 19:53:13 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/043ce9da/ambari-web/app/views/main/service/service.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/service.js b/ambari-web/app/views/main/service/service.js
index d8740ca..bfb5e34 100644
--- a/ambari-web/app/views/main/service/service.js
+++ b/ambari-web/app/views/main/service/service.js
@@ -114,8 +114,8 @@ App.ComponentLiveTextView =  Em.View.extend({
   liveComponents: null,
   totalComponents: null,
   color: function() {
-    return this.get("liveComponents") === 0;
-  }.property("liveComponents")
+    return this.get("liveComponents") === 0 && this.get('totalComponents') !== 0;
+  }.property("liveComponents", 'totalComponents')
 });
 
 App.MainDashboardServiceView = Em.View.extend({


Mime
View raw message