Commit cf27dd31 authored by mfluharty's avatar mfluharty

Show component only if feature flag is enabled

:group_coverage_data_report_graph
parent df5fdb62
...@@ -17,6 +17,9 @@ export default { ...@@ -17,6 +17,9 @@ export default {
codeCoverageHeader: s__('RepositoriesAnalytics|Test Code Coverage'), codeCoverageHeader: s__('RepositoriesAnalytics|Test Code Coverage'),
}, },
computed: { computed: {
shouldShowCoverageSummary() {
return this.glFeatures.groupCoverageDataReportGraph;
},
shouldShowCoverageReport() { shouldShowCoverageReport() {
return this.glFeatures.groupCoverageDataReport; return this.glFeatures.groupCoverageDataReport;
}, },
...@@ -29,7 +32,7 @@ export default { ...@@ -29,7 +32,7 @@ export default {
<h4 data-testid="test-coverage-header"> <h4 data-testid="test-coverage-header">
{{ $options.text.codeCoverageHeader }} {{ $options.text.codeCoverageHeader }}
</h4> </h4>
<test-coverage-summary /> <test-coverage-summary v-if="shouldShowCoverageSummary" />
<test-coverage-table v-if="shouldShowCoverageReport" class="gl-mb-5" /> <test-coverage-table v-if="shouldShowCoverageReport" class="gl-mb-5" />
<download-test-coverage /> <download-test-coverage />
</div> </div>
......
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