debian-mirror-gitlab/app/assets/javascripts/batch_comments/components/drafts_count.vue
2021-03-11 19:13:27 +05:30

19 lines
396 B
Vue

<script>
import { GlBadge } from '@gitlab/ui';
import { mapGetters } from 'vuex';
export default {
components: {
GlBadge,
},
computed: {
...mapGetters('batchComments', ['draftsCount']),
},
};
</script>
<template>
<gl-badge size="sm" variant="success">
{{ draftsCount }}
<span class="sr-only"> {{ n__('draft', 'drafts', draftsCount) }} </span>
</gl-badge>
</template>