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,
|
|
|
|
},
|
2022-07-23 23:45:48 +05:30
|
|
|
props: {
|
|
|
|
variant: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: 'info',
|
|
|
|
},
|
|
|
|
},
|
2020-06-23 00:09:42 +05:30
|
|
|
computed: {
|
|
|
|
...mapGetters('batchComments', ['draftsCount']),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
2022-07-23 23:45:48 +05:30
|
|
|
<gl-badge size="sm" :variant="variant" 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>
|