Browse Source

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

Aleksandr Kovalenko 10 years ago
parent
commit
043ce9da58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ambari-web/app/views/main/service/service.js

+ 2 - 2
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({