From 51b8d34fe2399f6beec8a6d764013f6ea084cf97 Mon Sep 17 00:00:00 2001 From: rpereira2 Date: Tue, 9 Apr 2019 22:33:21 +0530 Subject: Pass cluster as parameter to helper --- app/helpers/clusters_helper.rb | 2 +- app/views/clusters/clusters/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/clusters_helper.rb b/app/helpers/clusters_helper.rb index 9a07f9e66ff..30d8a19ecce 100644 --- a/app/helpers/clusters_helper.rb +++ b/app/helpers/clusters_helper.rb @@ -22,7 +22,7 @@ module ClustersHelper end # EE overrides this - def show_cluster_health_graphs? + def show_cluster_health_graphs?(cluster) false end end diff --git a/app/views/clusters/clusters/show.html.haml b/app/views/clusters/clusters/show.html.haml index 8a93da54dce..e38a16e7a1a 100644 --- a/app/views/clusters/clusters/show.html.haml +++ b/app/views/clusters/clusters/show.html.haml @@ -34,7 +34,7 @@ = render 'banner' = render 'form' - = render_if_exists 'projects/clusters/prometheus_graphs' if show_cluster_health_graphs? + = render_if_exists 'projects/clusters/prometheus_graphs' if show_cluster_health_graphs?(@cluster) .cluster-applications-table#js-cluster-applications -- cgit v1.2.1