You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2015/04/22 18:53:34 UTC
ambari git commit: AMBARI-10666. gateways 0/0 should not be red.
(akovalenko)
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 <ak...@hortonworks.com>
Authored: Wed Apr 22 19:26:54 2015 +0300
Committer: Aleksandr Kovalenko <ak...@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({