diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-04-09 22:33:21 +0530 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-04-09 22:33:21 +0530 |
commit | 51b8d34fe2399f6beec8a6d764013f6ea084cf97 (patch) | |
tree | eac824feb718bee5461c47619a922de475539d1d | |
parent | 7dbb5d6462e6d567c23dcaa32a90c06bf8c18f1e (diff) | |
download | gitlab-ce-fix-cluster-health-ce.tar.gz |
Pass cluster as parameter to helperfix-cluster-health-ce
-rw-r--r-- | app/helpers/clusters_helper.rb | 2 | ||||
-rw-r--r-- | 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 |