Commit 18d53035 authored by mfluharty's avatar mfluharty

Move card title to $options

parent 854693aa
<script> <script>
import { s__ } from '~/locale'; import { __, s__ } from '~/locale';
import MetricCard from '~/analytics/shared/components/metric_card.vue'; import MetricCard from '~/analytics/shared/components/metric_card.vue';
import getGroupTestCoverage from '../graphql/queries/get_group_test_coverage.query.graphql'; import getGroupTestCoverage from '../graphql/queries/get_group_test_coverage.query.graphql';
...@@ -52,6 +52,9 @@ export default { ...@@ -52,6 +52,9 @@ export default {
isLoading: false, isLoading: false,
}; };
}, },
i18n: {
cardTitle: __('Overall Activity'),
},
computed: { computed: {
metrics() { metrics() {
return [ return [
...@@ -77,5 +80,5 @@ export default { ...@@ -77,5 +80,5 @@ export default {
}; };
</script> </script>
<template> <template>
<metric-card :title="__('Overall Activity')" :metrics="metrics" :is-loading="isLoading" /> <metric-card :title="$options.i18n.cardTitle" :metrics="metrics" :is-loading="isLoading" />
</template> </template>
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