Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D23F317435 for ; Wed, 22 Apr 2015 16:53:37 +0000 (UTC) Received: (qmail 99387 invoked by uid 500); 22 Apr 2015 16:53:34 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 99356 invoked by uid 500); 22 Apr 2015 16:53:34 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 99347 invoked by uid 99); 22 Apr 2015 16:53:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 16:53:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9236DDFC3D; Wed, 22 Apr 2015 16:53:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akovalenko@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-10666. gateways 0/0 should not be red. (akovalenko) Date: Wed, 22 Apr 2015 16:53:34 +0000 (UTC) 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 Authored: Wed Apr 22 19:26:54 2015 +0300 Committer: Aleksandr Kovalenko 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({