Commit a66ceca3 authored by Maxime Orefice's avatar Maxime Orefice

Use new endpoint test counter badge

parent fcc2bdb4
......@@ -114,7 +114,7 @@ export default () => {
});
axios
.get(dataset.testReportEndpoint)
.get(dataset.testReportsCountEndpoint)
.then(({ data }) => {
document.querySelector('.js-test-report-badge-counter').innerHTML = data.total_count;
})
......
......@@ -21,4 +21,5 @@
= render "projects/pipelines/with_tabs", pipeline: @pipeline
.js-pipeline-details-vue{ data: { endpoint: project_pipeline_path(@project, @pipeline, format: :json),
test_report_endpoint: test_report_project_pipeline_path(@project, @pipeline, format: :json) } }
test_report_endpoint: test_report_project_pipeline_path(@project, @pipeline, format: :json),
test_reports_count_endpoint: test_reports_count_project_pipeline_path(@project, @pipeline, format: :json) } }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment