Skip to content
Snippets Groups Projects
Commit d7222a05 authored by Mark Florian's avatar Mark Florian :two:
Browse files

Merge branch 'migrate-gl-card-classes-to-vue-component' into 'master'

Migrate gl-card classes to Vue component

See merge request !91791
parents 5493e20d 55d435f7
No related branches found
No related tags found
1 merge request!91791Migrate gl-card classes to Vue component
Pipeline #580693802 passed
<script>
import { GlLoadingIcon } from '@gitlab/ui';
import { GlCard, GlLoadingIcon } from '@gitlab/ui';
import { mapState, mapGetters, mapActions } from 'vuex';
import statisticsLabels from '../constants';
export default {
components: {
GlCard,
GlLoadingIcon,
},
data() {
......@@ -26,20 +27,14 @@ export default {
</script>
<template>
<div class="gl-card">
<div class="gl-card-body">
<h4>{{ __('Statistics') }}</h4>
<gl-loading-icon v-if="isLoading" size="lg" class="my-3" />
<template v-else>
<p
v-for="statistic in getStatistics(statisticsLabels)"
:key="statistic.key"
class="js-stats"
>
{{ statistic.label }}
<span class="light float-right">{{ statistic.value }}</span>
</p>
</template>
</div>
</div>
<gl-card>
<h4>{{ __('Statistics') }}</h4>
<gl-loading-icon v-if="isLoading" size="lg" class="my-3" />
<template v-else>
<p v-for="statistic in getStatistics(statisticsLabels)" :key="statistic.key" class="js-stats">
{{ statistic.label }}
<span class="light float-right">{{ statistic.value }}</span>
</p>
</template>
</gl-card>
</template>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment