2020-06-23 00:09:42 +05:30
|
|
|
<script>
|
2020-10-24 23:57:45 +05:30
|
|
|
import { GlBadge } from '@gitlab/ui';
|
2021-03-11 19:13:27 +05:30
|
|
|
import { mapGetters } from 'vuex';
|
2020-06-23 00:09:42 +05:30
|
|
|
|
|
|
|
export default {
|
2020-10-24 23:57:45 +05:30
|
|
|
components: {
|
|
|
|
GlBadge,
|
|
|
|
},
|
2020-06-23 00:09:42 +05:30
|
|
|
computed: {
|
|
|
|
...mapGetters('batchComments', ['draftsCount']),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
2021-06-08 01:23:25 +05:30
|
|
|
<gl-badge size="sm" variant="info" class="gl-ml-2">
|
2020-10-24 23:57:45 +05:30
|
|
|
{{ draftsCount }}
|
2020-06-23 00:09:42 +05:30
|
|
|
<span class="sr-only"> {{ n__('draft', 'drafts', draftsCount) }} </span>
|
2020-10-24 23:57:45 +05:30
|
|
|
</gl-badge>
|
2020-06-23 00:09:42 +05:30
|
|
|
</template>
|