You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2017/01/18 20:09:07 UTC
ambari git commit: AMBARI-19614. UI Changes for Filtering QuickLinks
(alexantonenko)
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 <hi...@gmail.com>
Authored: Wed Jan 18 20:45:46 2017 +0200
Committer: Alex Antonenko <hi...@gmail.com>
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;
},