debian-mirror-gitlab/app/assets/javascripts/batch_comments/components/drafts_count.vue
2021-06-08 01:23:25 +05:30

19 lines
409 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="info" class="gl-ml-2">
{{ draftsCount }}
<span class="sr-only"> {{ n__('draft', 'drafts', draftsCount) }} </span>
</gl-badge>
</template>