Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA3CF200C00 for ; Wed, 18 Jan 2017 21:09:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E908B160B53; Wed, 18 Jan 2017 20:09:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3CCF2160B22 for ; Wed, 18 Jan 2017 21:09:08 +0100 (CET) Received: (qmail 96067 invoked by uid 500); 18 Jan 2017 20:09:07 -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 96058 invoked by uid 99); 18 Jan 2017 20:09:07 -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, 18 Jan 2017 20:09:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 59B1FDFB86; Wed, 18 Jan 2017 20:09:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: alexantonenko@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-19614. UI Changes for Filtering QuickLinks (alexantonenko) Date: Wed, 18 Jan 2017 20:09:07 +0000 (UTC) archived-at: Wed, 18 Jan 2017 20:09:09 -0000 Repository: ambari Updated Branches: refs/heads/branch-2.5 f1123231c -> e5152eacc AMBARI-19614. UI Changes for Filtering QuickLinks (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e5152eac Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e5152eac Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e5152eac Branch: refs/heads/branch-2.5 Commit: e5152eacc52e4a7a383758da8afc314a7f0fb1e0 Parents: f112323 Author: Alex Antonenko Authored: Wed Jan 18 20:45:46 2017 +0200 Committer: Alex Antonenko Committed: Wed Jan 18 22:09:02 2017 +0200 ---------------------------------------------------------------------- ambari-web/app/views/common/quick_view_link_view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e5152eac/ambari-web/app/views/common/quick_view_link_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/quick_view_link_view.js b/ambari-web/app/views/common/quick_view_link_view.js index 315e554..bb21b9f 100644 --- a/ambari-web/app/views/common/quick_view_link_view.js +++ b/ambari-web/app/views/common/quick_view_link_view.js @@ -308,8 +308,11 @@ App.QuickLinksView = Em.View.extend({ getQuickLinksConfiguration: function () { var serviceName = this.get('content.serviceName'); var self = this; + var quicklinks, links = {}; if (self.hasQuickLinksConfig(serviceName)) { - return App.QuickLinksConfig.find().findProperty('id', serviceName); + quicklinks = App.QuickLinksConfig.find().findProperty('id', serviceName); + Em.set(quicklinks, 'links', Em.get(quicklinks, 'links').filterProperty('visible', true)); + return quicklinks; } return null; },