Repository: ambari
Updated Branches:
  refs/heads/trunk cf67fb9fe -> 52c86109c


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/52c86109
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/52c86109
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/52c86109

Branch: refs/heads/trunk
Commit: 52c86109cc4570cf121ae46a22e5ed48ed67f420
Parents: cf67fb9
Author: Alex Antonenko <[email protected]>
Authored: Wed Jan 18 20:45:46 2017 +0200
Committer: Alex Antonenko <[email protected]>
Committed: Wed Jan 18 22:13:06 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/52c86109/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 4c92a2f..d551357 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 = {};
     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;
   },

Reply via email to