summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/metrics.html.haml
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-22 00:07:58 -0600
committerMike Greiling <mike@pixelcog.com>2018-03-06 03:11:38 -0600
commit76b65bb2cd9d9fe082df448eea669f9cf0cbe066 (patch)
tree08bfb4bd13283216a2f44da269af8671f66a1644 /app/views/projects/environments/metrics.html.haml
parent711d9c0b541f120612dac4317b78e54272a80429 (diff)
downloadgitlab-ce-76b65bb2cd9d9fe082df448eea669f9cf0cbe066.tar.gz
use proper dependency injection for monitoring dashboard component
Diffstat (limited to 'app/views/projects/environments/metrics.html.haml')
-rw-r--r--app/views/projects/environments/metrics.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/environments/metrics.html.haml b/app/views/projects/environments/metrics.html.haml
index 9d9759ebc5f..c151b5acdf7 100644
--- a/app/views/projects/environments/metrics.html.haml
+++ b/app/views/projects/environments/metrics.html.haml
@@ -15,7 +15,8 @@
"empty-getting-started-svg-path": image_path('illustrations/monitoring/getting_started.svg'),
"empty-loading-svg-path": image_path('illustrations/monitoring/loading.svg'),
"empty-unable-to-connect-svg-path": image_path('illustrations/monitoring/unable_to_connect.svg'),
- "additional-metrics": additional_metrics_project_environment_path(@project, @environment, format: :json),
+ "metrics-endpoint": additional_metrics_project_environment_path(@project, @environment, format: :json),
+ "deployment-endpoint": project_environment_deployments_path(@project, @environment, format: :json),
"project-path": project_path(@project),
"tags-path": project_tags_path(@project),
- "has-metrics": "#{@environment.has_metrics?}", deployment_endpoint: project_environment_deployments_path(@project, @environment, format: :json) } }
+ "has-metrics": "#{@environment.has_metrics?}" } }