diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-22 00:07:58 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 03:11:38 -0600 |
commit | 76b65bb2cd9d9fe082df448eea669f9cf0cbe066 (patch) | |
tree | 08bfb4bd13283216a2f44da269af8671f66a1644 /app/views/projects/environments/metrics.html.haml | |
parent | 711d9c0b541f120612dac4317b78e54272a80429 (diff) | |
download | gitlab-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.haml | 5 |
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?}" } } |